JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
listings sort when you click headers
[wfpl.git] / metaform.php
index b4ec6e0..3a6e70d 100644 (file)
@@ -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';