Commit cdde1513 authored by Aurel's avatar Aurel

when automatically disabling preferences, only do with those which has

the same portal type as the original


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34877 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1ccfc689
......@@ -66,7 +66,8 @@ for p in portal.portal_preferences.searchFolder():\n
if portal.portal_membership.getAuthenticatedMember().allowed(p, [\'Owner\', ]) :\n
if p != pref and \\\n
p.getPreferenceState() == \'enabled\' and \\\n
p.getPriority() == pref.getPriority() :\n
p.getPriority() == pref.getPriority() and \\\n
p.getPortalType() == pref.getPortalType() :\n
p.portal_workflow.doActionFor(p,\n
\'disable_action\',\n
wf_id=\'preference_workflow\', \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