Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -428,6 +428,7 @@ |
429 | 429 | $input_type = null; |
430 | 430 | $field_args = array(); |
431 | 431 | $default_value = ""; |
| 432 | + $possible_values = null; |
432 | 433 | $preload_page = null; |
433 | 434 | for ($i = 2; $i < count($tag_components); $i++) { |
434 | 435 | $component = trim($tag_components[$i]); |
— | — | @@ -515,7 +516,7 @@ |
516 | 517 | if (! array_key_exists('rows', $field_args)) |
517 | 518 | $field_args['rows'] = 5; |
518 | 519 | if (! array_key_exists('cols', $field_args)) |
519 | | - $field_args['cols'] = 70; |
| 520 | + $field_args['cols'] = 80; |
520 | 521 | $sfgTabIndex++; |
521 | 522 | $sfgFieldNum++; |
522 | 523 | list($new_text, $new_javascript_text) = $this->textAreaHTML('<free_text>', 'free_text', false, $form_is_disabled, $field_args); |
— | — | @@ -1524,7 +1525,7 @@ |
1525 | 1526 | } |
1526 | 1527 | |
1527 | 1528 | // if there are possible values specified, call the dropdown function |
1528 | | - if ($other_args['possible_values'] != null) |
| 1529 | + if (array_key_exists('possible_values', $other_args) && $other_args['possible_values'] != null) |
1529 | 1530 | return SFFormPrinter::dropdownHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args); |
1530 | 1531 | |
1531 | 1532 | global $sfgTabIndex, $sfgFieldNum, $sfgJSValidationCalls; |
— | — | @@ -1790,7 +1791,7 @@ |
1791 | 1792 | if (! array_key_exists('rows', $other_args)) |
1792 | 1793 | $other_args['rows'] = 5; |
1793 | 1794 | if (! array_key_exists('cols', $other_args)) |
1794 | | - $other_args['cols'] = 70; |
| 1795 | + $other_args['cols'] = 80; |
1795 | 1796 | |
1796 | 1797 | // if it's an autocomplete, call the with-autocomplete function instead |
1797 | 1798 | $autocompletion_disabled = array_key_exists('autocomplete on', $other_args) && $other_args['autocomplete on'] == ""; |
— | — | @@ -1981,7 +1982,7 @@ |
1982 | 1983 | // can show up here either as an array or a string, depending on |
1983 | 1984 | // whether it came from user input or a wiki page |
1984 | 1985 | if (is_array($cur_value)) { |
1985 | | - $checked_str = ($cur_value[value] == 'on') ? ' checked="checked"' : ""; |
| 1986 | + $checked_str = (array_key_exists('value', $cur_value) && $cur_value[value] == 'on') ? ' checked="checked"' : ""; |
1986 | 1987 | } else { |
1987 | 1988 | // default to false - no need to check if it matches a 'false' word |
1988 | 1989 | $vlc = strtolower(trim($cur_value)); |