[Bps-public-commit] rt-extension-formtools branch, master, updated. 0.07_02-10-g6bf36a3
Ruslan Zakirov
ruz at bestpractical.com
Sun May 1 06:57:09 EDT 2011
The branch, master has been updated
via 6bf36a3bdd7cb5956632df193c92034297fd2f90 (commit)
from af3d44a952f81c9c5d8688f3b5144840a70271ff (commit)
Summary of changes:
html/FormTools/Field | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 6bf36a3bdd7cb5956632df193c92034297fd2f90
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Sun May 1 14:56:19 2011 +0400
render_as => 'hidden' for custom fields
diff --git a/html/FormTools/Field b/html/FormTools/Field
index 428a0c3..fa5d94a 100644
--- a/html/FormTools/Field
+++ b/html/FormTools/Field
@@ -113,7 +113,9 @@ unless ( $default ) {
% } else { # CF
-% if ($render_as eq 'normal') {
+% if ($render_as eq 'hidden') {
+ <input type="hidden" class="hidden" name=<% $input_name %> value="<% $default %>">
+% } elsif ($render_as eq 'normal') {
<& /Elements/EditCustomField, Object => $queue, CustomField => $cf, NamePrefix => $NamePrefix,
($cf->Type =~ /text/i) ? (Cols => $cols ||60) : (),
($cf->Type =~ /freeform/i) ? (Cols => $cols ||30) : (),
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list