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 21af25f

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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()

src/collective/iconifiedcategory/upgrades.zcml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
profile="collective.iconifiedcategory:default" />
6363

6464
<genericsetup:upgradeStep
65-
title="Updated ContentCategoryConfiguration type"
65+
title="Updated to_approve/approved workflow"
6666
description=""
6767
source="2106"
6868
destination="2107"

0 commit comments

Comments
 (0)