#5951 AttributeError on ticket milestone filtering

v1.0.0
closed
sf-2 (994)
General
2015-08-20
2013-03-11
No

/p/openstamanager/errori/65/
/p/tdm-gcc/bugs/147/
...

File '/var/local/allura/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html', line 13 in top-level template code
  {{widget.display_field_by_name('_milestone')|safe}}
File '/var/local/allura/ForgeTracker/forgetracker/widgets/ticket_form.py', line 37 in display_field_by_name
  for milestone in reversed(field.options):  # reverse so del hits the correct indexes
AttributeError: 'TextField' object has no attribute 'options'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-03-22
    • size: --> 2
     
  • Cory Johns - 2013-03-27
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns - 2013-03-27
    • status: in-progress --> code-review
     
  • Cory Johns - 2013-03-27

    allura:cj/5951

    To QA:

    • Have a tracker w/ a Milestone field (named _milestone)
    • Change its type to something other than Milestone
    • Confirm no 500's when viewing a ticket
    • Add a new Milestone-type custom field
    • Set a value for that field on a ticket
    • Confirm the custom milestone field gets linkified on that ticket
    • Create some closed milestones (on both the _milestone field and a custom Milestone-type field)
    • Confirm that milestones in the drop-down when editing a ticket are grouped properly (for both _milestone and custom Milestone-type field)
     
  • Dave Brondsema

    Dave Brondsema - 2013-03-28
     
  • Dave Brondsema

    Dave Brondsema - 2013-03-28
    • qa: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2013-03-28
    • status: code-review --> closed
     

Log in to post a comment.