[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-72-g835ca9e

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Nov 4 00:23:36 EST 2009


The branch, 3.8-trunk has been updated
       via  835ca9e393799c47bac9be284e5c8bdd045ed3aa (commit)
      from  55f5e824dcb06e344a8ae7535f14c973639a0bea (commit)

Summary of changes:
 share/html/Search/Build.html |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 835ca9e393799c47bac9be284e5c8bdd045ed3aa
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Nov 4 13:21:47 2009 +0800

    we can't use @actions to store query's parse results: we should use another variable to do this

diff --git a/share/html/Search/Build.html b/share/html/Search/Build.html
index e2c13ff..0fd7974 100644
--- a/share/html/Search/Build.html
+++ b/share/html/Search/Build.html
@@ -174,10 +174,11 @@ my $ParseQuery = sub {
     return $tree;
 };
 
-my $tree = $ParseQuery->( $query{'Query'}, \@actions );
+my @parse_results;
+my $tree = $ParseQuery->( $query{'Query'}, \@parse_results );
 
 # if parsing went poorly, send them to the edit page to fix it
-if ( $actions[0] ) {
+if ( @parse_results ) {
     return $m->comp( "Edit.html", Query => $query{'Query'}, actions => \@actions );
 }
 

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


More information about the Rt-commit mailing list