From 65e244efa2cf3534af24ff96b40aa3257e0312eb Mon Sep 17 00:00:00 2001 From: Lewis Kabui Date: Tue, 6 Feb 2024 10:28:01 +0300 Subject: [PATCH] fix: Use Locator property `block_id`. This change has been made to address 9 deprecation warnings which can be seen after the tests are run. `name` property of Locators has been deprecated and replaced by the `block_id` property. --- cms/templates/checklists.html | 2 +- cms/templates/container.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/templates/checklists.html b/cms/templates/checklists.html index e949f37d79bf..e1859f38f70b 100644 --- a/cms/templates/checklists.html +++ b/cms/templates/checklists.html @@ -49,7 +49,7 @@
${_("Location ID")}
"course": { "id": "${context_course.id | n, js_escaped_string}", "name": "${context_course.display_name_with_default | n, js_escaped_string}", - "url_name": "${context_course.location.name | n, js_escaped_string}", + "url_name": "${context_course.location.block_id | n, js_escaped_string}", "org": "${context_course.location.org | n, js_escaped_string}", "num": "${context_course.location.course | n, js_escaped_string}", "display_course_number": "${context_course.display_coursenumber | n, js_escaped_string}",