From f0fc4af561b20bd74d975359b18c14166132c8d1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 May 2022 08:23:03 +0200 Subject: [PATCH] Bug 32030: Disable and blank "Closure reason" if status is not "closed" Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../prog/js/vue/components/ERM/AgreementsFormAdd.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue index fe4381146d..35254592f9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue @@ -82,7 +82,7 @@ id="agreement_closure_reason" v-model="agreement.closure_reason" :disabled=" - agreement.status == 'closed' ? true : false + agreement.status == 'closed' ? false : true " > @@ -262,8 +262,8 @@ export default { } ) }, - onStatusChange(status) { - if (status == 'closed') { + onStatusChange(event) { + if (event.target.value != 'closed') { this.agreement.closure_reason = '' } } -- 2.39.5