Fix #3081361 "UPDATE NOT OK in 5.0-beta2", reported by Der Michel
authorJehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
Tue, 5 Oct 2010 11:35:33 +0000 (13:35 +0200)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 5 Oct 2010 11:35:33 +0000 (13:35 +0200)
display.php

index 2b5191786a1e771006bd3552f805d5baa41bb613..07e62f0204093cb5da42d949e8581b6315865966 100644 (file)
                                                $extras['autocomplete'] = 'off';
                                        }
 
-                                       echo $data->printField("values[{$attrs->fields['attnum']}]", $rs->fields[$attrs->fields['attname']], $attrs->fields['type'], $extras);
+                                       echo $data->printField("values[{$attrs->fields['attname']}]", $rs->fields[$attrs->fields['attname']], $attrs->fields['type'], $extras);
 
                                        echo "</td>";
                                        $elements++;
                        if (!isset($_POST['nulls'])) $_POST['nulls'] = array();
                        
                        $status = $data->editRow($_POST['table'], $_POST['values'], $_POST['nulls'], 
-                                                                                               $_POST['format'], $_POST['types'], unserialize($_POST['key']));
+                               $_POST['format'], $_POST['types'], unserialize($_POST['key']));
                        if ($status == 0)
                                doBrowse($lang['strrowupdated']);
                        elseif ($status == -2)