]> git.nbdom.net Git - nb.git/commitdiff
fix bug on edit form url
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 25 Jan 2017 14:21:40 +0000 (14:21 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 25 Jan 2017 14:21:40 +0000 (14:21 +0000)
www/dbq/dbq.php

index b99ade49afb54618097ed1d71af93e203ec241d8..b0049937fdf18574763c37b24e70156ef81d2656 100644 (file)
@@ -247,15 +247,15 @@ class DbQ extends nb {
 
     $values = $add ? array_fill(0,count($keys),'') : explode($this->param_args_sep,$this->params['args']);
 
-    $this->table->html_edit(array_combine($keys,$values),$this->table->base.($add ? 'insert' : 'update').'/'.$this->params['args'],$add);
+    $this->table->html_edit(array_combine($keys,$values),$this->table->base.'/'.($add ? 'insert' : 'update').'/'.$this->params['args'],$add);
   }
 
   public function table_rw() {
     return 1
       and ($this->perm >= self::VIEW)
       and !empty($this->table)
-      and ( strpos('table view',$this->table->type()) !== false )
-    ;
+        and ( strpos('table view',$this->table->type()) !== false )
+      ;
   }
   public function table_rows($fct=null) {
     $this->db->limit = $this->limit();