ewsterrenburg / python-otrs

Pythonic interface to OTRS SOAP API
GNU General Public License v3.0
47 stars 27 forks source link

TicketGet with DynamicFields #14

Closed mjducharme closed 8 years ago

mjducharme commented 8 years ago

TicketGet with Dynamic fields is not working. The fields are returned by OTRS (i checked the web service debugger and it shows them in the output), but instead of the dynamic fields being available as child objects (like articles), dynamic fields are not added to the python object. I think there needs to be a:

def dynamic_fields(self):
    try:
        return self.childs['DynamicField']
    except KeyError:
        return []

in both class Ticket and class Article because both tickets and articles can have dynamic fields. I don't know the code well enough to know if a child map is also needed.

mjducharme commented 8 years ago

I submitted a patch that fixes this

ewsterrenburg commented 8 years ago

Thanks @mjducharme Was on holiday for a fews days, when I came back, it was both reported and fixed :)