Bugfix in 'rows' and 'cols' options for text fields.

pull/7/head
Ferry Boender 10 years ago
parent 1080b50696
commit c0634564c4
  1. 4
      examples/megacorp_acc/megacorp_acc.json
  2. 4
      src/scriptform.py

@ -174,7 +174,9 @@
{ {
"name": "comment", "name": "comment",
"title": "Comment", "title": "Comment",
"type": "text" "type": "text",
"rows": 10,
"cols": 80
} }
] ]
} }

@ -865,8 +865,8 @@ class ScriptFormWebApp(WebAppHandler):
params['max'] = field.get("max", '') params['max'] = field.get("max", '')
if field['type'] in ('text'): if field['type'] in ('text'):
params['rows'] = field.get("rows", ''), params['rows'] = field.get("rows", '')
params['cols'] = field.get("cols", ''), params['cols'] = field.get("cols", '')
if field['type'] == 'radio': if field['type'] == 'radio':
if not form_values.get(field['name'], None): if not form_values.get(field['name'], None):

Loading…
Cancel
Save