Commit ac4af404 authored by Nicolas Delaby's avatar Nicolas Delaby

Define undifined portal_type variable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31233 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af173a47
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
permanent_url = context.WebSection_getPermanentURL(document)\n permanent_url = context.WebSection_getPermanentURL(document)\n
\n \n
# for web page, foo and foo/view are completely same\n # for web page, foo and foo/view are completely same\n
portal_type = document.getPortalType()\n
if portal_type == \'Web Page\':\n if portal_type == \'Web Page\':\n
return permanent_url\n return permanent_url\n
else:\n else:\n
......
876 877
\ 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