directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r887222 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/SearchRunnable.java
Date Fri, 04 Dec 2009 15:10:11 GMT
Author: pamarcelot
Date: Fri Dec  4 15:10:10 2009
New Revision: 887222

URL: http://svn.apache.org/viewvc?rev=887222&view=rev
Log:
Fix for DIRSTUDIO-601 (The 'Perform Search/Search Again' button in the Search Result Editor
does not work correctly).

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/SearchRunnable.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/SearchRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/SearchRunnable.java?rev=887222&r1=887221&r2=887222&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/SearchRunnable.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/SearchRunnable.java
Fri Dec  4 15:10:10 2009
@@ -161,6 +161,10 @@
         {
             ISearch search = searches[pi];
             ISearch searchToPerform = searchesToPerform[pi];
+            
+            // Making sure we have the original search objects and not clones
+            search = search.getBrowserConnection().getSearchManager().getSearch( search.getName()
);
+            searchToPerform = searchToPerform.getBrowserConnection().getSearchManager().getSearch(
searchToPerform.getName() );
 
             monitor.setTaskName( BrowserCoreMessages.bind( BrowserCoreMessages.jobs__search_task,
new String[]
                 { search.getName() } ) );



Mime
View raw message