[Rt-commit] r8049 -
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Search/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Mon Jul 2 21:29:41 EDT 2007
Author: ruz
Date: Mon Jul 2 21:29:40 2007
New Revision: 8049
Modified:
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Search/Elements/ProcessQuery
Log:
* switch to new API
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Search/Elements/ProcessQuery
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Search/Elements/ProcessQuery (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Search/Elements/ProcessQuery Mon Jul 2 21:29:40 2007
@@ -122,20 +122,7 @@
Value => $value
};
- my $newnode = RT::Interface::Web::QueryBuilder::Tree->new($clause);
- if (@current_values) {
- foreach my $value (@current_values) {
- my $newindex = $value->getIndex + 1;
- $value->insertSibling( $newindex, $newnode );
- $value = $newnode;
- push @new_values, $newnode;
- }
- }
- else {
- $tree->addChild($newnode);
- push @new_values, $newnode;
- }
- $newnode->getParent->setNodeValue( $ARGS{'AndOr'} );
+ push @new_values, RT::Interface::Web::QueryBuilder::Tree->new($clause);
}
}
@@ -145,10 +132,9 @@
%ARGS,
Tree => $tree,
Selected => \@current_values,
+ New => \@new_values,
);
-push @current_values, @new_values;
-
# {{{ Rebuild $Query based on the additions / movements
my $optionlist_arrayref;
More information about the Rt-commit
mailing list