|
@@ 960-962 (lines=3) @@
|
| 957 |
|
$fields[$attrs->fields['attnum']] = $attrs->fields['attname']; |
| 958 |
|
$attrs->fields['attnotnull'] = $data->phpBool($attrs->fields['attnotnull']); |
| 959 |
|
// Set up default value if there isn't one already |
| 960 |
|
if (!isset($_REQUEST['values'][$attrs->fields['attnum']])) { |
| 961 |
|
$_REQUEST['values'][$attrs->fields['attnum']] = $attrs->fields['adsrc']; |
| 962 |
|
} |
| 963 |
|
|
| 964 |
|
// Default format to 'VALUE' if there is no default, |
| 965 |
|
// otherwise default to 'EXPRESSION' |
|
@@ 966-968 (lines=3) @@
|
| 963 |
|
|
| 964 |
|
// Default format to 'VALUE' if there is no default, |
| 965 |
|
// otherwise default to 'EXPRESSION' |
| 966 |
|
if (!isset($_REQUEST['format'][$attrs->fields['attnum']])) { |
| 967 |
|
$_REQUEST['format'][$attrs->fields['attnum']] = ($attrs->fields['adsrc'] === null) ? 'VALUE' : 'EXPRESSION'; |
| 968 |
|
} |
| 969 |
|
|
| 970 |
|
// Continue drawing row |
| 971 |
|
$id = (($i % 2) == 0 ? '1' : '2'); |