@@ 948-950 (lines=3) @@ | ||
945 | $fields[$attrs->fields['attnum']] = $attrs->fields['attname']; |
|
946 | $attrs->fields['attnotnull'] = $data->phpBool($attrs->fields['attnotnull']); |
|
947 | // Set up default value if there isn't one already |
|
948 | if (!isset($_REQUEST['values'][$attrs->fields['attnum']])) { |
|
949 | $_REQUEST['values'][$attrs->fields['attnum']] = $attrs->fields['adsrc']; |
|
950 | } |
|
951 | ||
952 | // Default format to 'VALUE' if there is no default, |
|
953 | // otherwise default to 'EXPRESSION' |
|
@@ 954-956 (lines=3) @@ | ||
951 | ||
952 | // Default format to 'VALUE' if there is no default, |
|
953 | // otherwise default to 'EXPRESSION' |
|
954 | if (!isset($_REQUEST['format'][$attrs->fields['attnum']])) { |
|
955 | $_REQUEST['format'][$attrs->fields['attnum']] = ($attrs->fields['adsrc'] === null) ? 'VALUE' : 'EXPRESSION'; |
|
956 | } |
|
957 | ||
958 | // Continue drawing row |
|
959 | $id = (($i % 2) == 0 ? '1' : '2'); |