Changeset 3988

Show
Ignore:
Timestamp:
07/08/08 16:55:37 (2 months ago)
Author:
coling
Message:

Add a check to make sure the key 'fields' exists before trying to access it. Closes #3344

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • clientsplugin/0.11/clients/client.py

    r2838 r3988  
    2525         
    2626    def post_process_request(self, req, template, data, content_type): 
     27        # Some ticket views do not actually load the data in this way 
     28        # e.g. action=history or action=diff 
     29        if not data.has_key('fields'): 
     30            return template, data, content_type 
     31 
    2732        newticket = req.path_info.startswith('/newticket') 
    2833        if req.path_info.startswith('/ticket/') or newticket: