Task Assigning - global name 'redirect' is not defined
After creating a task, get the following server error:
case <broken repr (DetachedInstanceError: Instance <Case at 0x7f6bcefeaf10> is not bound to a session; attribute refresh operation cannot proceed
tt <foreman.model.generalModel.TashType object at 0x7f6bd010bc10>
args {} task_type_options [(1, u'Email Search'), (2, u'Email Archive Search'), (3, u'Instant Messenger Search'), (4, u'Chat Room Search'), (5, u'Fax Search'), (6, u'Text Message Search'), (7, u'PST File Recovery;).......
new_task <broken repr (DetachedInstanceError: Instance <Case at 0x7f6bcefeaa50> is not bound to a session; attribute refresh operation cannot proceed
case_id u'1' is_requester False self <foreman.controllers.caseController.CaseController instance at 0x7f6bcede3d88>
NameError: global name 'redirect' is not defined
Comments (2)
-
-
I was able to bypass the redirect that wasn't working by changing line 315 in caseController.py to:
return self.return_response('pages', 'task_added.html', task=new_task)
I now get the confirmation message that the task has been created.
The task isn't getting assigned to the examiner, and it seems as though the workflow isn't working correctly.
- Log in to comment
Note that this is on a standalone network with no email, etc. DB is postgres and base OS is Fedora.