From 7b534564c7dfbcd0e1fea0431c1f5af7993351d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20de=20la=20Pen=CC=83a?= Date: Wed, 21 Oct 2026 22:33:45 +0100 Subject: [PATCH] fix: Show the no-worker warning as user feedback --- admin/views/FindReplace/index.php | 11 ----------- src/Admin/Controller/FindReplace.php | 7 ++++++- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/admin/views/FindReplace/index.php b/admin/views/FindReplace/index.php index bde1177..b7e19b5 100644 --- a/admin/views/FindReplace/index.php +++ b/admin/views/FindReplace/index.php @@ -1,20 +1,9 @@
- -
-

Search saved content, then replace matches from the results screen. A search and its rows are kept or deleted together.

diff --git a/src/Admin/Controller/FindReplace.php b/src/Admin/Controller/FindReplace.php index 7f16a4d..3afbb5e 100644 --- a/src/Admin/Controller/FindReplace.php +++ b/src/Admin/Controller/FindReplace.php @@ -48,10 +48,15 @@ public static function announce(): Nav|array|null public function index(): void { $this->requireSearchPermission(); + $warning = $this->searchQueue()->warning(); + + if ($warning !== null) { + $this->oUserFeedback->warning(htmlspecialchars($warning, ENT_QUOTES, 'UTF-8')); + } + $this ->addBreadcrumb('Utilities') ->addBreadcrumb('Find & Replace') - ->setData('queueWarning', $this->searchQueue()->warning()) ->loadView('index'); }