diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml index d398f93bbb8072d8d8480bb91be42b121125b6d2..71c67688a517c9748696e7a654470947303fdf2b 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml @@ -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> diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index ce163e7b6b4b7eef56c4445149326a929a7a7e3e..2ae9f6c7cb0c0df9f4a24d37ce337efa56c061b7 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -440 \ No newline at end of file +441 \ No newline at end of file