WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a6b79ac

Browse files
committed
Fixed upgrade step 2107
1 parent 2d7d378 commit a6b79ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collective/iconifiedcategory/upgrades.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def upgrade_to_2107(context):
235235
if 'to_approve' not in parent.categorized_elements[obj_uid]:
236236
obj.to_approve = False
237237
parent.categorized_elements[obj_uid]['to_approve'] = False
238-
parent._p_changed = True
239-
if 'approved' not in parent.categorized_elements[obj_uid]:
240238
obj.approved = False
241239
parent.categorized_elements[obj_uid]['approved'] = False
240+
obj.approved_activated = False
241+
parent.categorized_elements[obj_uid]['approved_activated'] = False
242242
parent._p_changed = True
243243
pghandler.finish()

0 commit comments

Comments
 (0)