From dbfa995ba5a54abb4b081c2b9c26aa9008c090a8 Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 4 Jul 2019 22:37:00 -0500 Subject: [PATCH] Changed create pool bulk action to default to the currently searched strings --- ext/pools/main.php | 2 +- ext/pools/theme.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/pools/main.php b/ext/pools/main.php index 49d99f0e..edbe5f4b 100644 --- a/ext/pools/main.php +++ b/ext/pools/main.php @@ -416,7 +416,7 @@ class Pools extends Extension $event->add_action("bulk_pool_add_existing", "Add To (P)ool", "p","", $this->theme->get_bulk_pool_selector($pools)); - $event->add_action("bulk_pool_add_new", "Create Pool", "","", $this->theme->get_bulk_pool_input()); + $event->add_action("bulk_pool_add_new", "Create Pool", "","", $this->theme->get_bulk_pool_input($event->search_terms)); } public function onBulkAction(BulkActionEvent $event) diff --git a/ext/pools/theme.php b/ext/pools/theme.php index ce4d1b58..bb798c8d 100644 --- a/ext/pools/theme.php +++ b/ext/pools/theme.php @@ -399,8 +399,8 @@ class PoolsTheme extends Themelet return $output . ""; } - public function get_bulk_pool_input() + public function get_bulk_pool_input(array $search_terms) { - return ""; + return ""; } }