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

Jonathan Druart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Passed QA                   |Failed QA

--- Comment #15 from Jonathan Druart <[email protected]> ---
Wow, no! This is not as trivial as it looks like.

We must force scalar context actually. I am expecting lot of side-effects with
this change.

Try with:
use Koha::Items;
my $item = Koha::Items->find(1);

my $h1 = { holds => $item->holds, something => 'else' };
use Data::Printer colored => 1; warn p $h1 

Add 1 hold
=> holds is a Koha::Hold when we expect a set

Add another hold
Outch, you get:

{
  holds => Koha::Hold,
  Koha::Hold=Hash => "something",
  else => undef
}

-- 
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