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

sartak at bestpractical.com sartak at bestpractical.com
Fri Jul 24 17:15:03 EDT 2009


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

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

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

    Default to 0 correctly for each freeform CF input box

diff --git a/share/html/Elements/EditCustomFieldFreeform b/share/html/Elements/EditCustomFieldFreeform
index b9dbdb4..713e032 100644
--- a/share/html/Elements/EditCustomFieldFreeform
+++ b/share/html/Elements/EditCustomFieldFreeform
@@ -49,7 +49,7 @@
 % if ($Multiple) {
 <textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$name%>s" id="<%$name%>s" wrap="off" class="CF-<%$CustomField->id%>-Edit"><% $Default || '' %></textarea>
 % } else {
-<input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" class="CF-<%$CustomField->id%>-Edit" value="<%$Default ? $Default : ''%>" />
+<input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" class="CF-<%$CustomField->id%>-Edit" value="<% defined($Default) ? $Default : ''%>" />
 % }
 <%INIT>
 if ( $Multiple and $Values ) {

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


More information about the Rt-commit mailing list