]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 23 Oct 2017 11:06:40 +0000 (12:06 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 23 Oct 2017 11:06:40 +0000 (12:06 +0100)
lib/php/db/table.php

index 210a8185b1ec4e24eb2df250746213c0807c0533..7ea1237bc6b8eaff5d6997e1aad3f04bb94d9a9e 100644 (file)
@@ -559,9 +559,9 @@ Class Table extends nb {
 
     if ($this->show_hidden_params and !empty(self::$params)) {
       echo ''
+        .self::form_hidden(['action','referer'])
       # NB 19.10.17: reactivated for rent 
         .(!empty($fields['action']) ? '' : '<input type="hidden" name="action" value="'.($add ? 'insert' : 'update').'"/>')
-        .self::form_hidden(['action'])
         .(!empty($_SERVER['HTTP_REFERER']) ? '<input type="hidden" name="referer" value="'.urlencode($_SERVER['HTTP_REFERER']).'" />' : '')
       ;
     } else {