From: Nicolas Boisselier Date: Wed, 25 Jan 2017 14:21:40 +0000 (+0000) Subject: fix bug on edit form url X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f058f3323571eab40a7a5b49e5a53267b13333a1;p=nb.git fix bug on edit form url --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index b99ade49..b0049937 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -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();