Skip to content

Commit

Permalink
fixed form names after refact
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Nov 13, 2024
1 parent 88c2f9e commit 6cfeab1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions Products/zms/ZMSWorkflowProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,16 @@ def manage_changeWorkflow(self, lang, btn='', key='workflow_properties', REQUEST
except:
message += '[%s: %s]'%(node,'No history to pack')
message = self.getZMILangStr('MSG_CHANGED')+message


# Content Assignment.
# -----------
elif key == 'workflow_assignment':
# Save.
# ------
if btn == 'BTN_SAVE':
self.nodes = standard.string_list(REQUEST.get('nodes', ''))
message = self.getZMILangStr('MSG_CHANGED')

# Properties.
# -----------
elif key == 'workflow_properties':
Expand All @@ -354,7 +363,6 @@ def manage_changeWorkflow(self, lang, btn='', key='workflow_properties', REQUEST
new_autocommit = REQUEST.get('workflow', 0) == 0
self.revision = REQUEST.get('revision', '0.0.0')
self.autocommit = new_autocommit
self.nodes = standard.string_list(REQUEST.get('nodes', ''))
if old_autocommit == 0 and new_autocommit == 1:
self.doAutocommit(lang, REQUEST)
message = self.getZMILangStr('MSG_CHANGED')
Expand Down
2 changes: 1 addition & 1 deletion Products/zms/import/_language.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6422,7 +6422,7 @@
</Row>
<Row>
<Cell><Data ss:Type="String">TAB_WORKFLOW_MODEL</Data></Cell>
<Cell><Data ss:Type="String">Ablauf-Modell</Data></Cell>
<Cell><Data ss:Type="String">Workflow-Modell</Data></Cell>
<Cell><Data ss:Type="String">Workflow Model</Data></Cell>
<Cell><Data ss:Type="String">Workflow Model</Data></Cell>
<Cell><Data ss:Type="String">Workflow Model</Data></Cell>
Expand Down
3 changes: 2 additions & 1 deletion Products/zms/zpt/ZMSWorkflowProvider/manage_main.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@
<form id="workflow_assignment_form" name="workflow_assignment_form"
class="form-horizontal" action="manage_changeWorkflow" method="post" enctype="multipart/form-data">
<input type="hidden" name="lang" tal:attributes="value request/lang" />
<input type="hidden" name="key" value="workflow_properties" />
<input type="hidden" name="key" value="workflow_assignment" />
<input type="hidden" name="workflow:int" value="0" tal:attributes="value python:[0,1][int(not here.getAutocommit())]" />

<div class="controls form-row form-inline px-3">
<div class="form-group">
Expand Down

0 comments on commit 6cfeab1

Please sign in to comment.