From 67567d248203da05021653f95d9c68274058f534 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 21 Jan 2025 10:11:55 +0000 Subject: [PATCH] lib/php/db/table.php --- lib/php/db/table.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 8ba075d0..38a90820 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -659,7 +659,7 @@ Class Table extends nb { } - private function url_list($k='',$v='') { + public function url_list($k='',$v='') { $params = []; $fields = ($this->p('action') == 'delete') ? [] : $this->fields(); @@ -2076,25 +2076,25 @@ Class Table extends nb { ; #debug($params); if (!$this->delete($params,$e) and !isset($e['rowCount'])) bye($e); - $this->db()->print_header('Location',$this->url_referer(str_replace('&','&',$this->url_list()))); + # NB 21.01.25 $this->db()->print_header('Location',$this->url_referer(str_replace('&','&',$this->url_list()))); $this->out($e); return true; } elseif ($action == 'table.replace') { if (!$this->replace($_POST,$e) and !isset($e['rowCount'])) bye($e); - $this->db()->print_header('Location',$this->url_referer()); + # NB 21.01.25 $this->db()->print_header('Location',$this->url_referer()); $this->out($e); return true; } elseif ($action == 'table.insert') { if (!$this->insert($_POST,$e)) bye(); - $this->db()->print_header('Location',$this->url_referer()); + # NB 21.01.25 $this->db()->print_header('Location',$this->url_referer()); $this->out($e); return true; } elseif ($action == 'table.update') { if ($this->update($_POST,$e) === false) bye($e); - $this->db()->print_header('Location',$this->url_referer()); + # NB 21.01.25 $this->db()->print_header('Location',$this->url_referer()); $this->out($e); return true; -- 2.47.3