unable to create or modify ticket because 'dups' and 'dup_count' are seen as modified
|Reported by:||anonymous||Owned by:||thomasvs|
When creating a ticket or modifying an existing one i was unable to save my changes.
Source code inspection and debugging revealed
ticket.values.get('dups', None) and
ticket.values.get('dup_count', None) return and empty string instead of
None, presumably because the browser send the field with no value instead of not sending it at all.
Attached is a diff that inserts a check for the empty string.
Additionally when creating a new ticket I got a
KeyError when checking for old status which (at least over here) is not set when creating a new ticket.
Attached diff contains a fix as well.
Last but not least I removed superfluous
import time; statements, for pure prettiness.