https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39835

--- Comment #10 from Katrin Fischer <[email protected]> ---
Sorry for not realizing this sooner, but looking at Matts patch I belive there
is a mistake here that is causing a lot of tests to fail now:

None of the new ones below are booleans. They are actually numbers, some can
even be negative, like notforloan. They are actual tinyints that can take more
than 0/1 values in Koha.

damaged
itemlost
notforloan
restricted
stack
withdrawn

 =head2 koha_objects_class
diff --git a/Koha/Schema/Result/Deleteditem.pm
b/Koha/Schema/Result/Deleteditem.pm
index f0ffca3875e..ae17dc6d48d 100644
--- a/Koha/Schema/Result/Deleteditem.pm
+++ b/Koha/Schema/Result/Deleteditem.pm
@@ -536,7 +536,13 @@ __PACKAGE__->set_primary_key("itemnumber");

 __PACKAGE__->add_columns(
     '+bookable'                          => { is_boolean => 1 },
+    '+damaged'                           => { is_boolean => 1 },
     '+exclude_from_local_holds_priority' => { is_boolean => 1 },
+    '+itemlost'                          => { is_boolean => 1 },
+    '+notforloan'                        => { is_boolean => 1 },
+    '+restricted'                        => { is_boolean => 1 },
+    '+stack'                             => { is_boolean => 1 },
+    '+withdrawn'                         => { is_boolean => 1 },
 );

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to