JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: fixed bug with listing but no display page (some links got an extra _edit...
authorJason Woofenden <jason@jasonwoof.com>
Sun, 14 Jun 2009 16:38:06 +0000 (12:38 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sat, 20 Jun 2009 23:59:19 +0000 (19:59 -0400)
metaform.php

index ebd1f99..19e2168 100644 (file)
@@ -268,9 +268,6 @@ function make_html($whole_file = true) {
                }
 
                if($GLOBALS['opt_listing'] == 'Yes') {
-                       if($GLOBALS['opt_display'] != 'Yes') {
-                               $tem->show('opt_display_a_else');
-                       }
                        if(show_in_listing($type, $input, $format, $sql)) {
                                if($format == 'bool' || $format == 'yesno') {
                                        $tem->set('listing_enc', 'yesno');
@@ -284,6 +281,10 @@ function make_html($whole_file = true) {
                                        $tem->set('listing_enc', 'html');
                                        $tem->show('listing_value_enc');
                                }
+
+                               if($GLOBALS['opt_display'] != 'Yes') {
+                                       $tem->show('opt_display_a_else');
+                               }
                                $tem->show('listing_head_col');
                                $tem->show('listing_row_col');
                        }