From 5f569f20d468043992116cb9500ea8b96a5c845e Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 13 Jan 2026 16:44:00 +0000 Subject: [PATCH] Bug 41605: Fix incorrect default key Test plan: No behavioural change but it is an inconsistency in the code 1) Look in base-resource.js at the newResource computed method 2) Confirm that the code in the first conditional block is looking for 'hasOwnProperty("defaultValue")' 3) Check the new patch and confirm that the code has been changed from 'value: false' to 'defaultValue: false' to match this There is no behaviour change as boolean fields default to false within the framework but we should remove this inconsistency --- .../components/Admin/RecordSources/RecordSourcesResource.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/RecordSourcesResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/RecordSourcesResource.vue index c06ed08ab65..54d5286e926 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/RecordSourcesResource.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/RecordSourcesResource.vue @@ -59,7 +59,7 @@ export default { name: "can_be_edited", type: "checkbox", label: $__("Can be edited"), - value: false, + defaultValue: false, }, ], }); -- 2.50.1