Commit 6887ad24 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix propagating wrongly dialog variables (for exmaple, pass a workflow...

Fix propagating wrongly dialog variables (for exmaple, pass a workflow transition and then click save).
Fix default action name (must not contain :method, i'ts appended when rendered).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8880 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b8325ed
......@@ -91,13 +91,7 @@ if parameter_list.has_key(\'-C\'):\n
\n
# erp5_xhtml_style special fields.\n
# This is normal.\n
for k in (\'came_from\', \'SearchableText\', \'portal_status_message\', \'reset\'):\n
if parameter_list.has_key(k):\n
del parameter_list[k]\n
\n
# erp5_xhtml_style special fields.\n
# XXX: This should not be needed.\n
for k in (\'update_action\', \'dialog_method\', \'cancel_method\'):\n
for k in (\'came_from\', \'SearchableText\', \'portal_status_message\', \'reset\', \'dialog_id\', \'update_action\', \'dialog_method\', \'cancel_method\'):\n
if parameter_list.has_key(k):\n
del parameter_list[k]\n
\n
......
......@@ -76,7 +76,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block tal:define="object_uid here/getUid | nothing;\n
object_path here/getPath | nothing;\n
form_id form/id | nothing;\n
form_action python: here.portal_membership.checkPermission(\'Modify portal content\', here) and \'Base_edit:method\' or nothing;\n
form_action python: here.portal_membership.checkPermission(\'Modify portal content\', here) and \'Base_edit\' or nothing;\n
\n
local_parameter_list local_parameter_list | python: {};\n
dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n
......
48
\ No newline at end of file
52
\ 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