Commit 0493ddd7 authored by Julien Muchembled's avatar Julien Muchembled

Do not enable erp5_ui_test_preference if it is already enabled.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc5d21a1
......@@ -112,7 +112,8 @@ pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if pref is None:\n
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n
pref.setPreferredListboxListModeLineCount(10)\n
pref.enable()\n
if pref.getPreferenceState() == \'disabled\':\n
pref.enable()\n
\n
return \'Reset Successfully.\'\n
</string> </value>
......
440
\ No newline at end of file
441
\ 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