mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fix timestamp display, fix default display to remove double "'"
This commit is contained in:
parent
c98c5faa6e
commit
663e83b66e
@ -147,6 +147,7 @@
|
|||||||
$sTranslated = "'type' => 'float', 'precision' => $iPrecision";
|
$sTranslated = "'type' => 'float', 'precision' => $iPrecision";
|
||||||
break;
|
break;
|
||||||
case 'datetime':
|
case 'datetime':
|
||||||
|
case 'timestamp':
|
||||||
$sTranslated = "'type' => 'timestamp'";
|
$sTranslated = "'type' => 'timestamp'";
|
||||||
break;
|
break;
|
||||||
case 'varchar':
|
case 'varchar':
|
||||||
@ -300,6 +301,7 @@
|
|||||||
$default = '';
|
$default = '';
|
||||||
$nullcomma = '';
|
$nullcomma = '';
|
||||||
}
|
}
|
||||||
|
$default = ereg_replace("''","'",$default);
|
||||||
|
|
||||||
$this->sCol[] = "\t\t\t\t'" . $colname . "' => array(" . $type . ',' . $null . $nullcomma . $default . '),' . "\n";
|
$this->sCol[] = "\t\t\t\t'" . $colname . "' => array(" . $type . ',' . $null . $nullcomma . $default . '),' . "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user