From: Devops Date: Sat, 1 Apr 2017 14:56:50 +0000 (+0100) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a12bcd8225a5b6bfb0cadac0fa06bf9742bdcdf7;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 82b7b61a..3cd859b8 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -784,15 +784,18 @@ class DbQ extends nb { } elseif ($action == 'insert' and $this->perm >= self::WRITE) { if (!$this->table->insert($_POST,$info)) $this->error('insert: '.print_r($info,true)); header('Location: '.$this->table->base.'/'); + $this->page($info); } elseif ($action == 'update' and $this->perm >= self::WRITE) { # NB 19.12.16: TODO NOT WORKING with update using replace if (!$this->table->replace($_POST,$info)) $this->error('update: '.print_r($info,true)); header('Location: '.$this->table->base.'/'); + $this->page($info); } elseif ($action == 'rm' and $this->perm >= self::DELETE) { if (!$this->table->delete($_POST,$info)) $this->error('rm: '.print_r($info,true)); header('Location: '.$this->table->base.'/'); + $this->page($info); } else {