From ddfb75f84fa5220a5e6a67562b8102d2ec091fd8 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 22 Apr 2019 00:00:00 +0200 Subject: [PATCH] Fixed use without fix of omeka/omeka-s#1260. --- src/Controller/Admin/EbookController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/Admin/EbookController.php b/src/Controller/Admin/EbookController.php index 675e67b..dd49590 100644 --- a/src/Controller/Admin/EbookController.php +++ b/src/Controller/Admin/EbookController.php @@ -125,8 +125,8 @@ public function createAction() : []; $params['resource_ids'] = $resourceIds; // Manage Omeka with or without pull request #1260 (with or without - // param batch_action), so check $resourceIds. - $selectAll = $params['batch_action'] ? $params['batch_action'] === 'ebook-all' : empty($resourceIds); + // param batch_action), so check $resourceIds in all cases. + $selectAll = $params['batch_action'] ? $params['batch_action'] === 'ebook-all' : (empty($resourceIds) || (bool) $params['ebook_all']); $params['batch_action'] = $selectAll ? 'ebook-all' : 'ebook-selected'; $controllers = [