I’ve discovered an error when using Query Builder. I can also reproduce
it (on two of my RT installs)
Got to “Tickets” on the LHS of RT
If I then type something into any of the add criteria fields before
selecting all of the contents of the Query window (the standard ‘new
ticket search’ to delete it then i get this:
If I try and delete just the bottom two entries (the AND Status = ‘new’
AND Owner = ‘Nobody’) it works fine. If I try and delete ALL the
contents of the query window (Queue = “XXX” AND Status = ‘new’ AND Owner
= ‘Nobody’) it the reports the following error:
System error
error: Can’t locate object method “removeChild” via package “root”
(perhaps you forgot to load “root”?) at
/opt/rt3/share/html/Search/Build.html line 432.
context:
…
428: }
429: }
430: elsif ( $ARGS{“DeleteClause”} ) {
431: if (@current_values) {
432: $->getParent()->removeChild($) for @current_values;
433: }
434: else {
435: push( @actions, [ loc(“error: nothing to delete”), -1 ] );
436: }
…
code stack: /opt/rt3/share/html/Search/Build.html:432
/opt/rt3/share/html/autohandler:215
If I just try and delete everything in the Query window with nothing in
any of the “Add Criteria” fields, its works fine.
Any ideas??
Adrian Carter
Technical Manager
Leading Edge Internet
Web http://www.lei.net.au http://support.lei.net.au
Direct +61 2 6163 6162 Support 1 300 662 415
E-mail cartera@lei.net.au