From 9d92671ed13b6da3bbea365b37fd2a2cdaab80be Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 14 Oct 2023 13:44:14 +0200 Subject: [PATCH] Improve Manage_Table : search button if modify or delete is on the left --- include/lib/manage_table_sql.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index 9fb1f7df3..ae181b58c 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -824,8 +824,10 @@ function check() } $nb_order=count($this->a_order); $virg=""; $result=""; + // filter only on visible column - $visible=0; + $visible=($this->icon_mod=='left')?1:0; + $visible=$visible+( ($this->icon_del=='left')?1:0); for ($e=0; $e<$nb_order; $e++) { if ($this->get_property_visible($this->a_order[$e])==TRUE)