From: Jason Woofenden Date: Tue, 19 Apr 2011 05:41:43 +0000 (-0400) Subject: metaform: fix missing newline X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=ac57c47c8fe57b2d0c8b3a305898e3e4642176ae;hp=d37433940a2f34406b5adb26dab8525bb4b0e019;p=wfpl.git metaform: fix missing newline --- diff --git a/metaform.php b/metaform.php index 6ad925c..17b143e 100644 --- a/metaform.php +++ b/metaform.php @@ -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'); } diff --git a/metaform/template.php b/metaform/template.php index 57cd79f..d7fd3da 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -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