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)

brycenesbitt's avatar
131
brycenesbitt
asked 2012-01-27 14:25:01 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2012-05-01 10:23:14 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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')
brycenesbitt's avatar
131
brycenesbitt
answered 2012-02-29 01:59:22 -0600
edit flag offensive 0 remove flag delete link

Comments

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

Evgeny's avatar Evgeny (2012-03-05 20:12:54 -0600) edit
add a comment see more comments