[Koha-bugs] [Bug 28871] New: Koha::Objects->empty doesn't work correctly in list context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 17 16:27:40 CEST 2021


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

            Bug ID: 28871
           Summary: Koha::Objects->empty doesn't work correctly in list
                    context
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org

When in list context, it assigns an array with an interator inside.

To test:
my @patrons = Koha::Patrons->new->empty;
Dumper(@patrons);

=> FAIL: prints [ Koha::Patrons... ]

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


More information about the Koha-bugs mailing list