]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorDevops <sys@15gifts.com>
Sat, 1 Apr 2017 14:56:50 +0000 (15:56 +0100)
committerDevops <sys@15gifts.com>
Sat, 1 Apr 2017 14:56:50 +0000 (15:56 +0100)
www/dbq/dbq.php

index 82b7b61ad36d98617cff3a79c4401842aa8f395c..3cd859b85bef2818a1f57d47d80c1983c5d1338e 100644 (file)
@@ -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 {