Bugzilla – Attachment 3589 Details for
Bug 3727
If item type is mandatory in marc editor, itemtype is autofilled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch corrected
0001-Corrects-the-behaviour-of-the-itemtype-selectbox-in.patch (text/plain), 1.20 KB, created by
Frédérick Capovilla
on 2011-03-31 20:56:55 UTC
(
hide
)
Description:
Patch corrected
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2011-03-31 20:56:55 UTC
Size:
1.20 KB
patch
obsolete
>From a16d7a3b9fd3ddf7e828b325d0f542850a52c377 Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >Date: Thu, 31 Mar 2011 16:54:22 -0400 >Subject: [PATCH] Corrects the behaviour of the itemtype selectbox in addbiblio.pl > >If the subfield is set as mandatory with an empty default value, an >empty value is added in the selectbox and this value is selected by >default. Before, the first element was automatically selected, so it was >easy to forget to set this mandatory value. >--- > cataloguing/addbiblio.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index 2c0c63d..ba0ca0b 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -188,7 +188,7 @@ sub build_authorized_values_list ($$$$$$$) { > "select itemtype,description from itemtypes order by description"); > $sth->execute; > push @authorised_values, "" >- unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); >+ unless ( $tagslib->{$tag}->{$subfield}->{defaultvalue} and $tagslib->{$tag}->{$subfield}->{mandatory} ); > > my $itemtype; > >-- >1.5.6.5 >
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 3727
:
3587
| 3589