https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17501 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #58615|0 |1 is obsolete| | --- Comment #26 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 59344 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59344&action=edit Bug 17501: Use Koha::Object in Koha::Upload::_lookup The _lookup routine performs a few select statements on uploaded_files. In this patch the SQL statements are replaced with Koha::Object calls. One call of _lookup is replaced directly by Koha::UploadedFiles. Note: _lookup can be removed in a later stage. Test plan: [1] Run t/db_dependent/Upload.t [2] Upload a file in some upload category [3] Try to upload the same file into the same category. Error? [4] Try to upload the same file in another category. Should work. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.