#993 can't actually attach a file at ticket creation time

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2010-10-04
Wolf
No

WebApp Error: <type 'exceptions.AttributeError'="">: 'Ticket' object has no attribute 'attach'

results in a 500, fraction of the stack trace:

    >>  output = controller(*remainder, **dict(params))
    Module forgetracker.tracker_main:374 in save_ticket
    <<                  custom_fields=dict(),
                   ticket_num=c.app.globals.next_ticket_num())
           ticket.update(ticket_form)
           for u in M.ProjectRole.query.find({'name':'Admin'}).first().users_with_role():
               ticket.subscribe(user=u)
    >>  ticket.update(ticket_form)
    Module forgetracker.model.ticket:374 in update
    <<              if attachments:
                   for attachment in attachments:
                       self.attach(file_info=attachment)
           for k, v in ticket_form.iteritems():
               if 'custom_fields.' in k:
    >>  self.attach(file_info=attachment)
    AttributeError: 'Ticket' object has no attribute 'attach'

Discussion

  • Wolf - 2010-10-04

    description has changed

     
  • Mark Ramm - 2010-10-18

    We just need to verify that it's fixed on new tracker.

    • labels: -->
    • custom_field__size: --> 1
     
  • Jenny Steele - 2010-10-18
    • status: open --> in-progress
    • assigned_to: Jenny Steele
    • custom_field__size: 1 --> 1
     
  • Jenny Steele - 2010-10-18

    Confirmed this is fixed on a sandbox

     

Log in to post a comment.