From ecd66d720bdb8f2553fe0553afc3564065575475 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 Signed-off-by: David Nind --- .../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 c06ed08ab6..54d5286e92 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.39.5