Opened 6 years ago

Closed 5 years ago

#3954 closed defect (fixed)

Conflict with BlackMagicTicketTweaksPlugin

Reported by: todd.radel@… Owned by: coderanger
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 5 years ago by doki_pen

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.