Bugzilla – Attachment 153050 Details for
Bug 34184
"Document type" in suggestions form should have an empty entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34184: Add empty option for suggestion "document type"
Bug-34184-Add-empty-option-for-suggestion-document.patch (text/plain), 1.61 KB, created by
Jonathan Druart
on 2023-07-05 10:42:47 UTC
(
hide
)
Description:
Bug 34184: Add empty option for suggestion "document type"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-05 10:42:47 UTC
Size:
1.61 KB
patch
obsolete
>From 89c3e1514ddef6b1c5d7b50a818034f3a8d62a35 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 5 Jul 2023 12:41:09 +0200 >Subject: [PATCH] Bug 34184: Add empty option for suggestion "document type" > >Currently when editing a suggestion, the document type will preselect to the >first entry as we don't have an empty entry. >This can lead to data errors easily. > >Test plan: >Create a new suggestion >=> Notice that "document type" is empty by default, pick one >Edit it again >=> Notice that the value is kept and empty can be picked, pick empty >Edit again >=> Empty is selected and saved in DB >--- > .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index b1b442d79c1..20c542aa885 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -380,7 +380,7 @@ > </li> > <li> > <label for="itemtype">Document type:</label> >- [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, default=itemtype %] >+ [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size=20, default=itemtype, empty=1 %] > </li> > [% IF patron_reason_loop %] > <li> >-- >2.25.1
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 34184
:
153050
|
153054
|
153210