[Koha-bugs] [Bug 18381] New: Return values inconsistent between Koha::Object-> delete and its plural form

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 4 15:44:08 CEST 2017


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

            Bug ID: 18381
           Summary: Return values inconsistent between
                    Koha::Object->delete and its plural form
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org

>From bug 17669:
Added a note that Koha::Object->delete itself is not completely consistent
with Koha::Objects->delete (DBIx). The singular may return 1 when it
gets 0E0 from DBIx, while the plural one may return 0E0. But should be
handled somewhere else.

And the singular now returns -1 when $self is not in storage. Should we return
another value?

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


More information about the Koha-bugs mailing list