First time here? Check out the FAQ!
1

Bug: title disappears if your tag is rejected. [patch]
 

Bug: title disappears if your tag is rejected.

If one of your tags fails the "use-these-chars-in-tags" check, the title of your question gets erased.

1) Ask question
2) Write a title
3) Put "&" or "%" in a tag name
4) Submit, observe error    "use-these-chars-in-tags".
5) Observe    title is now blank

(I used preformatted text, because on Chrome, number and bullet lists are broken)

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
brycenesbitt's avatar
131
brycenesbitt
asked 13 years ago
Evgeny's avatar
13.2k
Evgeny
updated 13 years ago

Comments

see more comments

1 Answer

1

Solution patch: in writers.py add the following in the case of 'form not valid':

else:
    form.initial['title']= request.POST.get('title')

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
brycenesbitt's avatar
131
brycenesbitt
answered 13 years ago
link

Comments

thanks, I've fixed this in the repository, will make a new release this week.

Evgeny's avatar Evgeny (13 years ago)
see more comments