Commit 7ef89a12 authored by Ivan Tyagov's avatar Ivan Tyagov

Make workflow transition only if possible.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e435abcc
...@@ -65,7 +65,8 @@ else:\n ...@@ -65,7 +65,8 @@ else:\n
toggable_pad = knowledge_pad_url\n toggable_pad = knowledge_pad_url\n
\n \n
if toggable_pad is not None:\n if toggable_pad is not None:\n
toggable_pad.visible()\n if toggable_pad.getValidationState() == \'invisible\':\n
toggable_pad.visible()\n
for pad in all_knowledge_pads:\n for pad in all_knowledge_pads:\n
if pad.getObject()!=toggable_pad and pad.getValidationState()==\'visible\':\n if pad.getObject()!=toggable_pad and pad.getValidationState()==\'visible\':\n
pad.invisible()\n pad.invisible()\n
......
402 403
\ No newline at end of file \ 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