fix(patch): Update patch file
This commit is contained in:
parent
f47d8859d0
commit
7ccba9f9ca
2 changed files with 4 additions and 4 deletions
|
|
@ -232,4 +232,5 @@ frappe.patches.v15_0.move_event_cancelled_to_status
|
|||
frappe.patches.v15_0.set_file_type
|
||||
frappe.core.doctype.data_import.patches.remove_stale_docfields_from_legacy_version
|
||||
frappe.patches.v15_0.validate_newsletter_recipients
|
||||
frappe.patches.v15_0.sanitize_workspace_titles
|
||||
frappe.patches.v15_0.sanitize_workspace_titles
|
||||
frappe.patches.v15_0.migrate_role_profile_to_table_multi_select
|
||||
|
|
@ -7,8 +7,7 @@ def execute():
|
|||
for user in role_profiles:
|
||||
if not user.role_profile_name:
|
||||
continue
|
||||
user_role_profile = [{"role_profile": user.role_profile_name}]
|
||||
user = frappe.get_doc("User", user.name)
|
||||
new_role_profiles = []
|
||||
new_role_profiles.append({"role_profile": user.role_profile_name})
|
||||
user.update({"role_profile_name": new_role_profiles})
|
||||
user.update({"role_profile_name": user_role_profile})
|
||||
user.save()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue