[Rt-commit] rt branch, 4.0/jumbo-autocomplete, updated. rt-4.0.2-40-gbaa5e21

Jason May jasonmay at bestpractical.com
Mon Sep 26 16:10:54 EDT 2011


The branch, 4.0/jumbo-autocomplete has been updated
       via  baa5e21719adb55d7edcbab559f0eb8e1339a185 (commit)
      from  459ad08b8e718382fb01c666e391aa284037856b (commit)

Summary of changes:
 share/html/Ticket/ModifyAll.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit baa5e21719adb55d7edcbab559f0eb8e1339a185
Author: Jason May <jasonmay at bestpractical.com>
Date:   Mon Sep 26 16:09:16 2011 -0400

    Check if the value is numeric instead of checking the pref
    
    By checking the value, the page won't break if the pref changes between
    the GET and the POST, and any mech-like scripts submitting this page
    won't break because of a global pref.

diff --git a/share/html/Ticket/ModifyAll.html b/share/html/Ticket/ModifyAll.html
index 6cb9569..176eb30 100755
--- a/share/html/Ticket/ModifyAll.html
+++ b/share/html/Ticket/ModifyAll.html
@@ -188,7 +188,7 @@ unless ($OnlySearchForPeople or $OnlySearchForGroup or $ARGS{'AddMoreAttach'} )
         my @owners =@{$ARGS{'Owner'}};
         delete $ARGS{'Owner'};
         foreach my $owner(@owners){
-            if (RT->Config->Get('AutocompleteOwners', $session{'CurrentUser'})) {
+            if ($ARGS{'Owner'} =~ /\D/) {
                 $ARGS{'Owner'} = $owner unless ($Ticket->OwnerObj->Name eq $owner);
             }
             else {

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


More information about the Rt-commit mailing list