Skip to content

Commit

Permalink
fixed delete of content-object attributes
Browse files Browse the repository at this point in the history
svn path=/ZMS/branches/zms4/; revision=5776
  • Loading branch information
zmsdev committed Aug 12, 2020
1 parent ef0e7c3 commit 12ed2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/zms/ZMSMetaobjManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def manage_changeProperties(self, lang, btn='', key='all', REQUEST=None, RESPONS
# Delete.
# -------
# Delete Object.
if key == 'obj' and btn == 'BTN_DELETE':
if btn == 'BTN_DELETE' and key == 'obj':
if id:
meta_ids = [id]
else:
Expand All @@ -1063,7 +1063,7 @@ def manage_changeProperties(self, lang, btn='', key='all', REQUEST=None, RESPONS
id = ''
message = self.getZMILangStr('MSG_DELETED')%len(meta_ids)
# Delete Attribute.
elif key == 'attr' and btn == 'delete':
elif btn == 'BTN_DELETE' and key == 'attr':
attr_id = REQUEST['attr_id']
self.delMetaobjAttr( id, attr_id)

Expand Down

0 comments on commit 12ed2a1

Please sign in to comment.