[Rt-commit] rt branch, 3.8-trunk, updated. a4e5bc195b30a49d9125e948f008566899b70f9b

sartak at bestpractical.com sartak at bestpractical.com
Fri Jul 24 17:21:38 EDT 2009


The branch, 3.8-trunk has been updated
       via  a4e5bc195b30a49d9125e948f008566899b70f9b (commit)
      from  2759e9adbc07cc9074d60f3b0aaf324bcd49a948 (commit)

Summary of changes:
 share/html/Elements/EditCustomFieldFreeform |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit a4e5bc195b30a49d9125e948f008566899b70f9b
Author: Shawn M Moore <sartak at gmail.com>
Date:   Fri Jul 24 17:21:14 2009 -0400

    Improve default=0 handling for multi-freeform too

diff --git a/share/html/Elements/EditCustomFieldFreeform b/share/html/Elements/EditCustomFieldFreeform
index 713e032..856a61f 100644
--- a/share/html/Elements/EditCustomFieldFreeform
+++ b/share/html/Elements/EditCustomFieldFreeform
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 % my $name = $NamePrefix . $CustomField->Id . '-Value';
 % if ($Multiple) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$name%>s" id="<%$name%>s" wrap="off" class="CF-<%$CustomField->id%>-Edit"><% $Default || '' %></textarea>
+<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$name%>s" id="<%$name%>s" wrap="off" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
 % } else {
 <input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" class="CF-<%$CustomField->id%>-Edit" value="<% defined($Default) ? $Default : ''%>" />
 % }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list