[Rt-commit] [svn] r1959 - in rt/branches/3.3-TESTING: . html/Elements

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Mon Dec 6 02:11:21 EST 2004


Author: jesse
Date: Mon Dec  6 02:11:21 2004
New Revision: 1959

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/html/Elements/EditCustomField
   rt/branches/3.3-TESTING/html/Elements/EditCustomFieldFreeform
   rt/branches/3.3-TESTING/html/Elements/EditCustomFieldSelect
   rt/branches/3.3-TESTING/html/Elements/EditCustomFieldText
Log:
 r9504 at tinbook:  jesse | 2004-12-06T07:10:00.587141Z
 Removing duplicated code.
 
 


Modified: rt/branches/3.3-TESTING/html/Elements/EditCustomField
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/EditCustomField	(original)
+++ rt/branches/3.3-TESTING/html/Elements/EditCustomField	Mon Dec  6 02:11:21 2004
@@ -59,7 +59,7 @@
 
 # The "Magic" hidden input causes RT to know that we were trying to edit the field, even if 
 # we don't see a value later, since browsers aren't compelled to submit empty form fields
-$m->out('<input type="hidden" name="'.$NamePrefix.$CustomField->Id.'-Values-Magic" value="1">');
+$m->out("\n".'<input type="hidden" name="'.$NamePrefix.$CustomField->Id.'-Values-Magic" value="1">'."\n");
 
 return $m->comp(
     "EditCustomField$Type",

Modified: rt/branches/3.3-TESTING/html/Elements/EditCustomFieldFreeform
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/EditCustomFieldFreeform	(original)
+++ rt/branches/3.3-TESTING/html/Elements/EditCustomFieldFreeform	Mon Dec  6 02:11:21 2004
@@ -44,7 +44,6 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 % if ($Multiple) {
-<input type="hidden" name="<%$NamePrefix%><%$CustomField->Id%>-Values-Magic" value="1">
 <textarea cols=<%$Cols%> rows=<%$Rows%> name="<%$NamePrefix%><%$CustomField->Id%>-Values"><%$Default%></textarea>
 % } else {
 <input name="<%$NamePrefix%><%$CustomField->Id%>-Value" size="<%$Cols%>" value="<%$Default ? $Default : ''%>">

Modified: rt/branches/3.3-TESTING/html/Elements/EditCustomFieldSelect
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/EditCustomFieldSelect	(original)
+++ rt/branches/3.3-TESTING/html/Elements/EditCustomFieldSelect	Mon Dec  6 02:11:21 2004
@@ -43,7 +43,6 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-      <input type="hidden" name="<%$NamePrefix%><%$CustomField->Id%>-Values-Magic" value="1">
       <select name="<%$NamePrefix%><%$CustomField->Id%>-Values"
         size="<%$Rows%>"
         <% $Multiple && 'MULTIPLE' %>>

Modified: rt/branches/3.3-TESTING/html/Elements/EditCustomFieldText
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/EditCustomFieldText	(original)
+++ rt/branches/3.3-TESTING/html/Elements/EditCustomFieldText	Mon Dec  6 02:11:21 2004
@@ -47,7 +47,6 @@
 <textarea cols=<%$Cols%> rows=<%$Rows%> name="<%$NamePrefix%><%$CustomField->Id%>-Values"><% $value->Content %></textarea><br>
 % }
 % if (!$MaxValues or !$Values or $Values->Count < $MaxValues) {
-<input type="hidden" name="<%$NamePrefix%><%$CustomField->Id%>-Values-Magic" value="1">
 <textarea cols=<%$Cols%> rows=<%$Rows%> name="<%$NamePrefix%><%$CustomField->Id%>-Values"></textarea>
 % }
 <%INIT>


More information about the Rt-commit mailing list