[Rt-commit] r7696 - in rt/branches/3.7-EXPERIMENTAL: .

jesse at bestpractical.com jesse at bestpractical.com
Wed Apr 25 12:44:01 EDT 2007


Author: jesse
Date: Wed Apr 25 12:43:59 2007
New Revision: 7696

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickObjects
   rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectCustomFieldLookupType

Log:
 r56070 at pinglin:  jesse | 2007-04-25 12:41:44 -0400
 * Silence some warnings


Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickObjects
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickObjects	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickObjects	Wed Apr 25 12:43:59 2007
@@ -66,7 +66,7 @@
 % } else {
     <i>(<%loc("no name")%>)</i><br />
 % }
-    <%$Object->can('Description') && $Object->Description%>
+    <%$Object->can('Description') ? ($Object->Description||'') : '' %>
     </label>
   </td>
 </tr>

Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectCustomFieldLookupType
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectCustomFieldLookupType	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectCustomFieldLookupType	Wed Apr 25 12:43:59 2007
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <select NAME ="<%$Name%>">
 %for my $option ($cf->LookupTypes) {
-<option value="<%$option%>" <%$option eq $Default && "SELECTED"%>><% $cf->FriendlyLookupType($option) %></option>
+<option value="<%$option%>" <%$option eq $Default ? "SELECTED" : ''%>><% $cf->FriendlyLookupType($option) %></option>
 %}
 </select>
 <%INIT>
@@ -55,6 +55,6 @@
 
 </%INIT>
 <%ARGS>
-$Default=>undef
+$Default=> ''
 $Name => 'LookupType'
 </%ARGS>


More information about the Rt-commit mailing list