[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-199-ga43cc31

Thomas Sibley trs at bestpractical.com
Wed Nov 17 10:56:24 EST 2010


The branch, 3.8-trunk has been updated
       via  a43cc31a496b1aa0798826f97ee7b031fd65eb1b (commit)
      from  fafce4240c4c791f4f60314e19c91dbd72b2361d (commit)

Summary of changes:
 .../html/Search/Elements/SelectSearchesForObjects  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit a43cc31a496b1aa0798826f97ee7b031fd65eb1b
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Nov 17 10:53:36 2010 -0500

    Provide a default saved search option with no value
    
    Without this the browser will choose the first available saved search
    option causing brokenness when saving/updating searches.

diff --git a/share/html/Search/Elements/SelectSearchesForObjects b/share/html/Search/Elements/SelectSearchesForObjects
index 1366d5d..194b4a9 100644
--- a/share/html/Search/Elements/SelectSearchesForObjects
+++ b/share/html/Search/Elements/SelectSearchesForObjects
@@ -51,6 +51,7 @@ $Name => undef
 $SearchType => 'Ticket',
 </%args>
 <select id="<%$Name%>" name="<%$Name%>">
+<option value="" selected>&nbsp;</option>
 % foreach my $object (@Objects) {
 <optgroup label="<& SearchPrivacy, Object => $object &>">
 % my @searches = $object->Attributes->Named('SavedSearch');

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


More information about the Rt-commit mailing list