[Koha-bugs] [Bug 20566] New: Remove 'single' method from Koha::Objects

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 11 17:38:32 CEST 2018


            Bug ID: 20566
           Summary: Remove 'single' method  from Koha::Objects
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Database
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: martin.renvoize at ptfs-europe.com
        QA Contact: testopia at bugs.koha-community.org

We're exposing ourselves to terrible bugs which dbix::class goes to lengths to
inform the developer about before they're added by circumventing the
protections built into dbic here.

By hard coding a 'rows => 1' into this method instead of just using the method
from DBIC we are ensuring the developer will never be informed of their
stupidity if they have not added any form or ordering to their database
clauses. As such, the order of the results returned and as such the result of
the 'single' call is now entirely random.

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

More information about the Koha-bugs mailing list