Commit 72cdc45e authored by Yusei Tahara's avatar Yusei Tahara Committed by Arnaud Fontaine

Improve error handling on Workflow_statusModify. If divergence is solved by...

Improve error handling on Workflow_statusModify. If divergence is solved by other user, then show a nice message.
parent 054b7b02
......@@ -74,6 +74,11 @@ try:\n
except FormValidationError, validation_errors:\n
# Pack errors into the request\n
field_errors = form.ErrorFields(validation_errors)\n
# Only for solve divergence dialog.\n
if dialog_id == \'Delivery_viewSolveDivergenceDialog\' and set([error.error_key for error in field_errors.values()])==set([\'unknown_selection\']):\n
message = translateString("Workflow state may have been updated by other user. Please try again.")\n
return context.Base_redirect(form_id, keep_items={\'portal_status_message\': message}, **kw)\n
else:\n
request.set(\'field_errors\', field_errors)\n
return form(request)\n
\n
......
2012-10-16 yusei
* Improve error handling on Workflow_statusModify. If divergence is solved by other user, then show a nice message.
2012-10-16 yusei
* Improve error handling on Workflow_statusModify. If requested transition is not available, then show a nice message.
......
1097
\ No newline at end of file
1098
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment