From f058f3323571eab40a7a5b49e5a53267b13333a1 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 25 Jan 2017 14:21:40 +0000 Subject: [PATCH] fix bug on edit form url --- www/dbq/dbq.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.47.3