None as default choice for default value
This commit is contained in:
@@ -369,9 +369,12 @@ for ($i = 0; $i < $num_fields; $i++) {
|
|||||||
(isset($row['Default']) ? $row['Default'] : '');
|
(isset($row['Default']) ? $row['Default'] : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// here we put 'NONE' as the default value of drop-down; otherwise
|
||||||
|
// users would have problems if they forget to enter the default
|
||||||
|
// value (example, for an INT)
|
||||||
$default_options = array(
|
$default_options = array(
|
||||||
'USER_DEFINED' => $strUserDefined,
|
|
||||||
'NONE' => $strNone,
|
'NONE' => $strNone,
|
||||||
|
'USER_DEFINED' => $strUserDefined,
|
||||||
'NULL' => 'NULL',
|
'NULL' => 'NULL',
|
||||||
'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
|
'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user