[Rt-commit] r6588 - in rt/branches/3.6-RELEASE: .
html/Search/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Wed Dec 6 14:17:36 EST 2006
Author: jesse
Date: Wed Dec 6 14:17:36 2006
New Revision: 6588
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/Elements/SelectBoolean
rt/branches/3.6-RELEASE/html/Elements/SelectCustomFieldOperator
rt/branches/3.6-RELEASE/html/Search/Elements/DisplayOptions
Log:
r45867 at 114: jesse | 2006-12-06 13:29:07 -0500
* Warning avoidance
Modified: rt/branches/3.6-RELEASE/html/Elements/SelectBoolean
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/SelectBoolean (original)
+++ rt/branches/3.6-RELEASE/html/Elements/SelectBoolean Wed Dec 6 14:17:36 2006
@@ -58,7 +58,8 @@
</%ARGS>
<%INIT>
-my ($TrueDefault, $FalseDefault);
+my $TrueDefault = '';
+my $FalseDefault ='';
if ($Default && $Default !~ /true/i) {
$FalseDefault = "SELECTED";
}
Modified: rt/branches/3.6-RELEASE/html/Elements/SelectCustomFieldOperator
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/SelectCustomFieldOperator (original)
+++ rt/branches/3.6-RELEASE/html/Elements/SelectCustomFieldOperator Wed Dec 6 14:17:36 2006
@@ -58,5 +58,5 @@
$Name => undef
@Options => ( loc('contains'), loc("doesn't contain"), loc('is'), loc("isn't"), loc('less than'), loc('greater than'))
@Values => ('LIKE', 'NOT LIKE', '=', '!=', '<', '>')
-$Default => undef
+$Default => ''
</%ARGS>
Modified: rt/branches/3.6-RELEASE/html/Search/Elements/DisplayOptions
==============================================================================
--- rt/branches/3.6-RELEASE/html/Search/Elements/DisplayOptions (original)
+++ rt/branches/3.6-RELEASE/html/Search/Elements/DisplayOptions Wed Dec 6 14:17:36 2006
@@ -67,7 +67,7 @@
% foreach my $field (sort keys %fields) {
% next unless $field;
<option value="<%$field%>"
-% if ($field eq $OrderBy[$o]) {
+% if (defined $OrderBy[$o] and $field eq $OrderBy[$o]) {
selected
% }
><&|/l&><%$field%></&></option>
More information about the Rt-commit
mailing list