Opened 10 years ago

Closed 9 years ago

#3954 closed defect (fixed)

Conflict with BlackMagicTicketTweaksPlugin

Reported by: Todd Radel Owned by: Noah Kantrowitz
Priority: normal Component: DateFieldPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


If you use the BlackMagicTicketTweaksPlugin to hide a date field, you will not be able to save any ticket, even if date_empty = true. The DateFieldPlugin will throw a validation warning every time.

To reproduce, add the following to trac.ini:

testdate = text = true
testdate.date_empty = true

tweaks = testdate
testdate.ondenial = hide
testdate.permission = TICKET_MODIFY

The blackmagic plugin removes the field completely, so the validate_ticket function in sees the value as NoneType, and cannot call strip(). I replaced line 69 of with the following:

                val = ticket[field]
                if val:
                    val = val.strip()

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Robert Corsaro

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.