[Koha-bugs] [Bug 10382] collection not returning to null when removed from course reserves
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 24 10:57:40 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10382
--- Comment #54 from Alex Arnaud <alex.arnaud at biblibre.com> ---
(In reply to Marcel de Rooy from comment #53)
> Alex,
> Thx for your prompt corrections.
> If I add this as line 113 in your test:
> $item->ccode(undef)->store;
> the test still passes, which means that an original NULL is converted to
> empty string after removing the course. So theoretically speaking, this is
> not right. Practically maybe not.
> Please clarify.
Hello Marcel,
If you put this at the line #113, this is just after the ccode test. So why
would it change anything ?
Also, $item->ccode(undef)->store; and $item->ccode('')->store; is different.
Undef is not converted to null:
$item->ccode(undef)->store;
MariaDB [koha]> select ccode from items where itemnumber = xxxx;
+-------+
| ccode |
+-------+
| NULL |
+-------+
1 row in set (0.00 sec)
$item->ccode('')->store;
MariaDB [koha]> select ccode from items where itemnumber = xxxx;
+-------+
| ccode |
+-------+
| |
+-------+
1 row in set (0.00 sec)
But i think it is transparent for us when using dbic methods. Returned values
are the same.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list