Bug 20144: [sql_modes] Set default value for aqbasket.is_standing
Fix for: Column 'is_standing' cannot be null t/db_dependent/Koha/Acquisition/Booksellers.t Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
06baf06d21
commit
7b27ff2fde
|
|
@ -607,6 +607,8 @@ case the AcqCreateItem syspref takes precedence).
|
|||
|
||||
sub ModBasketHeader {
|
||||
my ($basketno, $basketname, $note, $booksellernote, $contractnumber, $booksellerid, $deliveryplace, $billingplace, $is_standing, $create_items) = @_;
|
||||
|
||||
$is_standing ||= 0;
|
||||
my $query = qq{
|
||||
UPDATE aqbasket
|
||||
SET basketname=?, note=?, booksellernote=?, booksellerid=?, deliveryplace=?, billingplace=?, is_standing=?, create_items=?
|
||||
|
|
|
|||
Loading…
Reference in New Issue