Commit 6824bff5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

coding crime : never use the expression "if obj" whenever obj is not a simple type.

this code was working just by chance because active_knowledge_pad is a brain, not an ERP5 object.
parent 894e23fd
......@@ -148,7 +148,7 @@
</div>\n
\n
<div id="rename_tab_dialog" \n
tal:condition="active_knowledge_pad"\n
tal:condition="python:active_knowledge_pad is not None"\n
class="toggable_dialog"\n
tal:define="active_knowledge_pad_relative_url active_knowledge_pad/getRelativeUrl">\n
<h3 i18n:translate="" i18n:domain="ui"> Rename tab </h3>\n
......
......@@ -55,7 +55,7 @@
\n
<!-- Render active Knowledge pad -->\n
<div id="pad-body-wrapper"\n
tal:condition="active_knowledge_pad">\n
tal:condition="python:active_knowledge_pad is not None">\n
<tal:block tal:replace="structure python: active_knowledge_pad.KnowledgePad_viewDashboardWidget(\n
columns=columns,\n
real_context=here,\n
......
762
\ No newline at end of file
763
\ 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