[Rt-commit] r7967 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: . html/Widgets

clsung at bestpractical.com clsung at bestpractical.com
Tue May 29 22:32:32 EDT 2007


Author: clsung
Date: Tue May 29 22:32:31 2007
New Revision: 7967

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-TUNIS/html/REST/1.0/Forms/user/default
   rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Widgets/ComboBox

Log:
 r10815 at going04:  clsung | 2007-05-29 14:51:53 +0800
 - check if $format is defined
 r10816 at going04:  clsung | 2007-05-30 10:32:03 +0800
 - give Default a default


Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/REST/1.0/Forms/user/default
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/REST/1.0/Forms/user/default	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/REST/1.0/Forms/user/default	Tue May 29 22:32:31 2007
@@ -124,7 +124,7 @@
     foreach my $key (@fields) {
         my $val = $user->$key;
 
-        if ($format eq 'l' || (defined $val && $val ne '')) {
+        if ( (defined ($format) && $format eq 'l') || (defined $val && $val ne '')) {
             $key = "ContactInfo" if $key eq 'FreeformContactInfo';
             push @data, [ $key => $val ];
         }

Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Widgets/ComboBox
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Widgets/ComboBox	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Widgets/ComboBox	Tue May 29 22:32:31 2007
@@ -49,7 +49,7 @@
 <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/combobox.js"></script>
 
 <span id="<% $Name %>_Container" class="combobox">
-<input name="<% $Name %>" id="<% $Name %>" class="combo-text" value="<% $Default %>" type="text" <% $Size ? "size='$Size'" : '' |n %> autocomplete="off" />
+<input name="<% $Name %>" id="<% $Name %>" class="combo-text" value="<% $Default || '' %>" type="text" <% $Size ? "size='$Size'" : '' |n %> autocomplete="off" />
 <br style="display: none" /><span id="<% $Name %>_Button" class="combo-button"></span></span><select name="List-<% $Name %>" id="<% $Name %>_List" class="combo-list" onchange="ComboBox_SimpleAttach(this, this.form['<% $Name %>']); " rows="<% $Rows %>">
 <option style="display: none" value="">-</option>
 % foreach my $value (@Values) {


More information about the Rt-commit mailing list