Skip to content

Commit 12ed2a1

Browse files
author
zmsdev
committed
fixed delete of content-object attributes
svn path=/ZMS/branches/zms4/; revision=5776
1 parent ef0e7c3 commit 12ed2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Products/zms/ZMSMetaobjManager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def manage_changeProperties(self, lang, btn='', key='all', REQUEST=None, RESPONS
10451045
# Delete.
10461046
# -------
10471047
# Delete Object.
1048-
if key == 'obj' and btn == 'BTN_DELETE':
1048+
if btn == 'BTN_DELETE' and key == 'obj':
10491049
if id:
10501050
meta_ids = [id]
10511051
else:
@@ -1063,7 +1063,7 @@ def manage_changeProperties(self, lang, btn='', key='all', REQUEST=None, RESPONS
10631063
id = ''
10641064
message = self.getZMILangStr('MSG_DELETED')%len(meta_ids)
10651065
# Delete Attribute.
1066-
elif key == 'attr' and btn == 'delete':
1066+
elif btn == 'BTN_DELETE' and key == 'attr':
10671067
attr_id = REQUEST['attr_id']
10681068
self.delMetaobjAttr( id, attr_id)
10691069

0 commit comments

Comments
 (0)