From 8f67e1512fab7568911f01a8a31c182a85fdbf6c Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 28 Feb 2024 09:19:50 +0100 Subject: [PATCH] MDL-72397 templates: Terminate recursive example elements with [] That's the way that, at very least, the linter requires, not null, false or other values, but explicit empty array. Ref.: MDLSITE-6366 --- .../templates/move_category_list.mustache | 8 ++++---- .../managecategories/templates/move_context_list.mustache | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/question/bank/managecategories/templates/move_category_list.mustache b/question/bank/managecategories/templates/move_category_list.mustache index 814daeef67..0747a19430 100644 --- a/question/bank/managecategories/templates/move_category_list.mustache +++ b/question/bank/managecategories/templates/move_category_list.mustache @@ -39,21 +39,21 @@ "categoryid": 3, "firstchild": true, "current": false, - "categories": null + "categories": [] }, { "categoryname": "Test category 1", "categoryid": 4, "firstchild": false, "current": false, - "categories": null + "categories": [] }, { "categoryname": "Test category 2", "categoryid": 5, "firstchild": false, "current": true, - "categories": null + "categories": [] }, { "categoryname": "Test category 3 x < 1 && y > 2 ", @@ -66,7 +66,7 @@ "categoryid": 7, "firstchild": true, "current": false, - "categories": null + "categories": [] } ] } diff --git a/question/bank/managecategories/templates/move_context_list.mustache b/question/bank/managecategories/templates/move_context_list.mustache index 6bb3cef3b6..30683dabaa 100644 --- a/question/bank/managecategories/templates/move_context_list.mustache +++ b/question/bank/managecategories/templates/move_context_list.mustache @@ -37,14 +37,14 @@ "categoryid": 3, "firstchild": true, "current": false, - "categories": null + "categories": [] }, { "categoryname": "Default category for course category 1", "categoryid": 4, "firstchild": false, "current": true, - "categories": null + "categories": [] } ] }, @@ -57,14 +57,14 @@ "categoryid": 5, "firstchild": true, "current": false, - "categories": null + "categories": [] }, { "categoryname": "Default category for course category 2", "categoryid": 6, "firstchild": false, "current": false, - "categories": null + "categories": [] } ] } -- 2.43.0