https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10382
--- Comment #54 from Alex Arnaud <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
