Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Marcel de Rooy 7a62005468 Bug 17501: Move Koha::Upload::delete to Koha::UploadedFile[s]
Since delete is not part of the upload process, we will move it now
to Koha::UploadedFile[s].
Deleting the file will be done in UploadedFile.
The (multiple) delete method in UploadedFiles refers to the single delete.

Test plan:
[1] Run t/db_dependent/Upload.t
    The warning ("but file was missing") in the last subtest is fine;
    the file did not exist. Will be addressed in a follow-up.
[2] Search for uploads on Tools/Upload. Clone this tab (repeat search on
    a new tab in your browser).
[3] Delete an existing upload on the first tab.
[4] Try to delete it again on the second tab. Error message?
[5] Bonus points:
    Add an upload. Mark the file immutable with chattr +i. Try to delete
    the file. You should see a "Could not be deleted"-message.

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>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-01-20 14:20:04 +00:00
..
automatic_item_modification_by_age.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batch_delete_records.tt Bug 16949: Simplify the checkbox checked condition 2016-09-13 17:24:38 +00:00
batch_record_modification.tt Bug 16239 [CSS Follow-up] Upgrade Bootstrap in the staff client 2017-01-13 14:41:23 +00:00
batchMod-del.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batchMod-edit.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batchMod.tt
cleanborrowers.tt Bug 17083: Remove more event attributes from tools templates 2016-09-25 15:48:13 +00:00
csv-profiles.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
export.tt Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
holidays.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
import_borrowers.tt Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
inventory.tt Bug 17083: Remove more event attributes from tools templates 2016-09-25 15:48:13 +00:00
koha-news.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
letter.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
manage-marc-import.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
marc_modification_templates.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
modborrowers.tt Bug 16938: Remove the use of "onclick" from batch patrons modification template 2016-09-09 13:54:48 +00:00
overduerules.tt Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
picture-upload.tt Bug 17146: Fix CSRF in picture-upload.pl 2016-09-15 13:33:58 +00:00
quotes-upload.tt Bug 16513 - Improvements and fixes for quote upload process 2016-06-24 13:47:34 +00:00
quotes.tt Bug 16513 - Improvements and fixes for quote upload process 2016-06-24 13:47:34 +00:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
tools-home.tt Bug 17601 - Regression: Incomplete CSS update introduced by Bug 14610 2016-11-18 14:15:37 +00:00
upload-images.tt Bug 16538: Improve the style of progress bars 2016-07-15 18:06:08 +00:00
upload.tt Bug 17501: Move Koha::Upload::delete to Koha::UploadedFile[s] 2017-01-20 14:20:04 +00:00
viewlog.tt Bug 15758: Koha::Libraries - Remove GetBranchName 2016-09-08 14:36:01 +00:00