[Koha-bugs] [Bug 17669] Add purging temporary uploads to cleanup_database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 4 14:32:40 CEST 2017


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #61809|0                           |1
        is obsolete|                            |

--- Comment #44 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 61818
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61818&action=edit
Bug 17669: [QA Follow-up] More consistency in return values of delete

See Bugzilla comment36 (QA request).

Koha::UploadedFile->delete
Returns 1, 0E0 or -1 (unknown). Return value may depend on storage backend.

Koha::UploadedFiles->delete and delete_temporary
Returns number of deleted records, 0E0 or -1.

POD lines are corrected accordingly. Unit tests adjusted too.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
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.

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


More information about the Koha-bugs mailing list