Bugzilla – Attachment 91576 Details for
Bug 22630
Add ability to change the homebranch in course reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22630: Do not modify item fields if course reserve item says LEAVE UNCHANGED
Bug-22630-Do-not-modify-item-fields-if-course-rese.patch (text/plain), 1.10 KB, created by
Julian Maurice
on 2019-07-18 13:02:13 UTC
(
hide
)
Description:
Bug 22630: Do not modify item fields if course reserve item says LEAVE UNCHANGED
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2019-07-18 13:02:13 UTC
Size:
1.10 KB
patch
obsolete
>From 8fb5da29bd03e67c96f7468c6246801bf9264d8f Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 14 May 2019 14:43:31 +0200 >Subject: [PATCH] Bug 22630: Do not modify item fields if course reserve item > says LEAVE UNCHANGED >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Sponsored-by: Université de Lyon 3 >Signed-off-by: SONIA BOUIS <sonia.bouis@univ-lyon3.fr> >--- > C4/CourseReserves.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/C4/CourseReserves.pm b/C4/CourseReserves.pm >index cada388bbe..e529949916 100644 >--- a/C4/CourseReserves.pm >+++ b/C4/CourseReserves.pm >@@ -590,7 +590,9 @@ sub _RevertFields { > > my $mod_item_params; > foreach my $field ( @FIELDS ) { >- $mod_item_params->{$field} = $course_item->{$field}; >+ if (defined $course_item->{$field} and $course_item->{$field} ne '') { >+ $mod_item_params->{$field} = $course_item->{$field}; >+ } > } > > ModItem( $mod_item_params, undef, $course_item->{'itemnumber'} ) if $mod_item_params && %$mod_item_params; >-- >2.20.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 22630
:
87355
|
87369
|
89037
|
89741
|
89742
|
89743
|
90023
|
90024
|
90025
|
90026
|
90027
|
90028
|
91177
|
91178
|
91179
|
91180
|
91575
|
91576
|
91577
|
91578
|
92579
|
92580
|
92603
|
92604
|
103556
|
103634
|
103635
|
103733
|
103734
|
103735
|
103736
|
105324