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

            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@lists.koha-community.org
          Reporter: martin.renvo...@ptfs-europe.com
        QA Contact: testo...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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