Commit 4a63c404 authored by Jérome Perrin's avatar Jérome Perrin

Pressing enter in a dialog was calling the update method directly, without...

Pressing enter in a dialog was calling the update method directly, without passing through Base_showUpdateDialog (this is the script used by the update button), that's why the form was not validated in that case

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2a059fd
......@@ -43,7 +43,7 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:define-macro="master">\n
<tal:block tal:define="form_action python: form.update_action or \'Base_callDialogMethod\';\n
<tal:block tal:define="form_action python: test(form.update_action, \'Base_showUpdateDialog\', \'Base_callDialogMethod\');\n
dialog_id form/id | template/id;\n
form_id request/form_id | string:view;\n
dialog_method form/action | dialog_id;\n
......
755
\ No newline at end of file
757
\ 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