Merge pull request #10988 from surajshetty3416/fix-assign-patch

fix(patch): Ignore cancelled ToDos while setting _assign
This commit is contained in:
mergify[bot] 2020-07-14 08:31:59 +00:00 committed by GitHub
commit e3fd051fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -264,7 +264,7 @@ frappe.patches.v11_0.make_all_prepared_report_attachments_private #2019-11-26
frappe.patches.v12_0.setup_email_linking
frappe.patches.v12_0.fix_home_settings_for_all_users
frappe.patches.v12_0.change_existing_dashboard_chart_filters
frappe.patches.v12_0.set_correct_assign_value_in_docs
frappe.patches.v12_0.set_correct_assign_value_in_docs #2020-07-13
execute:frappe.delete_doc("Test Runner")
execute:frappe.delete_doc_if_exists('DocType', 'Google Maps Settings')
execute:frappe.db.set_default('desktop:home_page', 'workspace')

View file

@ -9,8 +9,9 @@ def execute():
FROM
`tabToDo`
WHERE
COALESCE(reference_type, '') != '' and
COALESCE(reference_name, '') != ''
COALESCE(reference_type, '') != '' AND
COALESCE(reference_name, '') != '' AND
status != 'Cancelled'
GROUP BY
reference_type, reference_name
'''