[Koha-bugs] [Bug 31383] Additional contents: We need a parent and child table

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 27 12:01:40 CEST 2023


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #156054|0                           |1
        is obsolete|                            |

--- Comment #93 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 156271
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156271&action=edit
Bug 31383: (QA follow-up) Do not return 0 in ->get

The last statement evaluated is the if( $content->count ).
If that evaluates to false, the false expression value is returned.
In this case that is 0.
We should just return undef or empty list (scalar/list context).

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list