Bugzilla – Attachment 157530 Details for
Bug 34497
Vue - Dialog component should allow for confirmation input options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34497: (QA follow-up):Fix required text field
Bug-34497-QA-follow-upFix-required-text-field.patch (text/plain), 1.62 KB, created by
Pedro Amorim
on 2023-10-20 14:40:20 UTC
(
hide
)
Description:
Bug 34497: (QA follow-up):Fix required text field
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-10-20 14:40:20 UTC
Size:
1.62 KB
patch
obsolete
>From f882037c5e4f8d17c2e63d22ad59b938e5374de5 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 20 Oct 2023 14:35:26 +0000 >Subject: [PATCH] Bug 34497: (QA follow-up):Fix required text field > >input.value can be either null (if flatpickr date field empty) or '' (if simple text input empty), >so account for both situations. >Add missing 'required' attribute to text inputs. >--- > koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue >index 452038cd6d..960c3075c7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue >@@ -38,6 +38,7 @@ > v-if="input.type == 'Text'" > :id="`confirmation_input_${input.id}`" > v-model="input.value" >+ :required="input.required" > /> > </div> > </div> >@@ -87,7 +88,9 @@ export default { > if ( > this.confirmation.inputs && > this.confirmation.inputs.filter( >- input => input.required && input.value == null >+ input => >+ input.required && >+ (input.value == null || input.value == "") > ).length > ) { > this.$refs.confirmationform.reportValidity() >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34497
:
154319
|
154329
|
154332
|
154333
|
157519
|
157520
|
157521
|
157522
|
157527
|
157530
|
157531
|
157532