Bug 17669: Small change to sub delete
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 20 Mar 2017 07:43:32 +0000 (08:43 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Apr 2017 17:55:24 +0000 (13:55 -0400)
commit686b7d6a827741da85224b6895d9b1c94cbbdf3c
treee099c3372765b63fc7eecb8b93efea32a4422338
parentfe9a8bf9735c7ea54d39aa1c19f667bf999a902d
Bug 17669: Small change to sub delete

Instead of looping through _resultset here and wrapping the results,
we should use a Koha::Objects instance. Since the method may be called
as a class method, we create an instance if needed.

Test plan:
Run t/db_dependent/Upload.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/UploadedFiles.pm