JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: fix missing newline
authorJason Woofenden <jason@jasonwoof.com>
Tue, 19 Apr 2011 05:41:43 +0000 (01:41 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 19 Apr 2011 05:42:46 +0000 (01:42 -0400)
metaform.php
metaform/template.php

index 6ad925c..17b143e 100644 (file)
@@ -432,6 +432,7 @@ function make_php() {
                                } elseif($input == 'pulldown' || $input == 'radio') {
                                        $pulldown_options = pulldown_options_array($options);
                                        $tem->set('pulldown_options', $pulldown_options);
+                                       $tem->set('has_pulldowns');
                                        $tem->show('pulldowns');
                                        $tem->show('pulldown_format_extra');
                                }
index 57cd79f..d7fd3da 100644 (file)
@@ -148,7 +148,7 @@ function ~file_name~_main_listing() {
 }~}~
 
 function ~file_name~_main_form($id = false) {~pulldowns {~
-       pulldown('~name~', ~pulldown_options~);~}~~pulldowns once_if {~
+       pulldown('~name~', ~pulldown_options~);~}~~has_pulldowns {~
 ~}~~opt_db {~
        if($id) {
                # add hidden field for database id of row we're editing