]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 21 Jan 2025 10:11:55 +0000 (10:11 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 21 Jan 2025 10:11:55 +0000 (10:11 +0000)
lib/php/db/table.php

index 8ba075d096d37fb06a0eb6524fcd70a8581191a8..38a90820ac0a16f2a5d91f233b089e17cf74d2a6 100644 (file)
@@ -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('&amp;','&',$this->url_list())));
+                       # NB 21.01.25 $this->db()->print_header('Location',$this->url_referer(str_replace('&amp;','&',$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;