Skip to content

Commit

Permalink
Fixed wrong regex for multi-levels orgs in migrate_to_4201.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duchenean authored Jul 2, 2024
1 parent f949fb8 commit f9dda17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/MeetingNamur/migrations/migrate_to_4201.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _migrate_grpBudgetInfos(self):
for grpBudgetInfo in item.grpBudgetInfos:
if grpBudgetInfo == "":
continue
matching_ids = [id for id in orgs_ids if id == grpBudgetInfo or re.match("\/%s$" % grpBudgetInfo, id)]
matching_ids = [id for id in orgs_ids if id == grpBudgetInfo or re.match(".*\/%s$" % grpBudgetInfo, id)]
if len(matching_ids) == 1:
grp_uid = org_id_to_uid(matching_ids[0])
new_values.append(grp_uid)
Expand Down

0 comments on commit f9dda17

Please sign in to comment.