undefined DefaultType

This commit is contained in:
Marc Delisle
2008-05-10 13:57:15 +00:00
parent 75e0cc9937
commit 7b0051ac7a

View File

@@ -383,7 +383,8 @@ for ($i = 0; $i < $num_fields; $i++) {
$content_cells[$i][$ci] = '<select name="field_default_type[' . $i . ']">';
foreach ($default_options as $key => $value) {
$content_cells[$i][$ci] .= '<option value="' . $key . '"';
if (($row['DefaultType']) == $key) {
// is only set when we go back to edit a field's structure
if (isset($row['DefaultType']) && $row['DefaultType'] == $key) {
$content_cells[$i][$ci] .= ' selected="selected"';
}
$content_cells[$i][$ci] .= ' >' . $value . '</option>';