JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
allow + in email addresses
[wfpl.git] / metaform.php
index b4ec6e0..a16e92f 100644 (file)
@@ -30,7 +30,7 @@ $GLOBALS['types'] = array(
        'name' =>       array('textbox',     'oneline',    'varchar(200) binary'),
        'textbox' =>    array('textbox',     'oneline',    'varchar(200) binary'),
        'int' =>        array('textbox',     'int',        'int'),
-       'decimal' =>    array('textbox',     'decimal',    'decimal(12,12)'),
+       'decimal' =>    array('textbox',     'decimal',    'decimal(12,2)'),
        'bigint' =>     array('textbox',     'int',        'varchar(100) binary'), # up to 100 digits, stored as a string
        'zip' =>        array('textbox',     'zip',        'varchar(20) binary'),
        'email' =>      array('email',       'email',      'varchar(100) binary'),
@@ -304,7 +304,7 @@ function make_html($whole_file = true) {
                }
 
                if(show_in_listing($type, $input, $format, $sql)) {
-                       $listing_headers[] = array('caption' => format_caption($name));
+                       $listing_headers[] = array('caption' => format_caption($name), 'name' => $name);
                        $listing_field = array('name' => $name);
                        if($format == 'bool' || $format == 'yesno') {
                                $listing_field['enc'] = 'yesno';