Commit bdda8686 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't fail rendering the page when "form" isn't defined.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28585d6e
...@@ -107,12 +107,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -107,12 +107,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<link href="erp5.css" rel="stylesheet" type="text/css"\n <link href="erp5.css" rel="stylesheet" type="text/css"\n
tal:attributes="href python: here.portal_url() + \'/\' + \'erp5.css\'" />\n tal:attributes="href python: here.portal_url() + \'/\' + \'erp5.css\'" />\n
\n \n
\n <tal:block tal:condition="exists: form">\n
<tal:block tal:condition="python:form.has_field(\'planning_box\')">\n <tal:block tal:condition="python:form.has_field(\'planning_box\')">\n
<tal:block tal:define="planning_box1 python:form.get_field(\'planning_box\');dummy python:request.set(\'here\',here)" >\n <tal:block tal:define="planning_box1 python:form.get_field(\'planning_box\');dummy python:request.set(\'here\',here)" >\n
<style tal:content="structure python: planning_box1.render_css(None,REQUEST=request)"/>\n <style tal:content="structure python: planning_box1.render_css(None,REQUEST=request)"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n
\n
</head>\n </head>\n
<body LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT="0" MARGINWIDTH="0">\n <body LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT="0" MARGINWIDTH="0">\n
<form action="Test" name="main_form" id="main_form"\n <form action="Test" name="main_form" id="main_form"\n
......
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