Fix: edit form

Fix: pgsql driver
This commit is contained in:
Laurent Destailleur 2014-05-29 19:56:15 +02:00
parent e8ec0f524f
commit 56d71f0da0
2 changed files with 5 additions and 4 deletions

View File

@ -191,8 +191,9 @@ class Form
$ret.='</td>'; $ret.='</td>';
if ($typeofdata != 'day' && $typeofdata != 'datepicker' && $typeofdata != 'datehourpicker') if ($typeofdata != 'day' && $typeofdata != 'datepicker' && $typeofdata != 'datehourpicker')
{ {
$ret.='<td align="left"><input type="submit" class="button" name="modify" value="'.$langs->trans("Modify").'">'; $ret.='<td align="left">';
$ret.='<br><br>'."\n"; $ret.='<input type="submit" class="button" name="modify" value="'.$langs->trans("Modify").'">';
$ret.='<br>'."\n";
$ret.='<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">'; $ret.='<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
$ret.='</td>'; $ret.='</td>';
} }

View File

@ -172,7 +172,7 @@ class DoliDBPgsql extends DoliDB
else if (preg_match('/DROP TABLE/i',$line)) $type='dml'; else if (preg_match('/DROP TABLE/i',$line)) $type='dml';
} }
$line=preg_replace('/ as signed/i',' as integer',$line); $line=preg_replace('/ as signed\)/i',' as integer)',$line);
if ($type == 'dml') if ($type == 'dml')
{ {