bug 1615: AddItem() now sets issues, renewals, and reserves
authorGalen Charlton <galen.charlton@liblime.com>
Sun, 2 Dec 2007 19:41:43 +0000 (13:41 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 2 Dec 2007 21:06:23 +0000 (15:06 -0600)
When an item was created,  the renewals, issues, and reserves columns
were not set from the MARC data.  This was noticed particularly
in the context of batch loads, where a user might supply
data for those fields.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm

index 9169fd7..83ddd6d 100755 (executable)
@@ -3837,6 +3837,9 @@ sub _koha_new_items {
             paidfor            = ?,
                        location                        = ?,
                        onloan                          = ?,
+                       issues                          = ?,
+                       renewals                        = ?,
+                       reserves                        = ?,
                        cn_source                       = ?,
                        cn_sort                         = ?,
                        ccode                           = ?,
@@ -3867,6 +3870,9 @@ sub _koha_new_items {
                        $item->{'paidfor'},
                        $item->{'location'},
                        $item->{'onloan'},
+                       $item->{'issues'},
+                       $item->{'renewals'},
+                       $item->{'reserves'},
                        $item->{'items.cn_source'},
                        $items_cn_sort,
                        $item->{'ccode'},