<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
  <meta content="MSHTML 6.00.2900.2668" name="GENERATOR">
  <style></style>
</head>
<body bgcolor="#ffffff" text="#000000">
<div>I've discovered an error when using Query Builder. I can also
reproduce it (on two of my RT installs)<br>
 </div>
<div><font face="Arial" size="2">Got to "Tickets" on the LHS of RT<br>
</font></div>
<div> </div>
<div><font face="Arial" size="2">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:<br>
<br>
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:<br>
</font></div>
<div> </div>
<div>
<p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><b>System
error</b></font></p>
<table border="0" cellpadding="1" cellspacing="0">
  <tbody>
    <tr>
      <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>error:</b> </font></td>
      <td align="left" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">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.<br>
      </font></td>
    </tr>
    <tr>
      <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>context:</b> </font></td>
      <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>...</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><br>
            </td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>428:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">}</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>429:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">}</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>430:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">elsif (
$ARGS{"DeleteClause"} ) {</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>431:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">if
(@current_values) {</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>432:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><font
 color="red">$_->getParent()->removeChild($_) for @current_values;</font></font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>433:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">}</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>434:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">else {</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>435:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">push( @actions,
[ loc("error: nothing to delete"), -1 ] );</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>436:</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">}</font></td>
          </tr>
          <tr>
            <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>...</b> </font></td>
            <td align="left" nowrap="nowrap" valign="top"><br>
            </td>
          </tr>
        </tbody>
      </table>
      </font></td>
    </tr>
    <tr>
      <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>code stack:</b> </font></td>
      <td align="left" nowrap="nowrap" valign="top"><font
 face="Verdana, Arial, Helvetica, sans-serif" size="-2">/opt/rt3/share/html/Search/Build.html:432<br>
/opt/rt3/share/html/autohandler:215<br>
      </font></td>
    </tr>
  </tbody>
</table>
</div>
<br>
If I just try and delete everything in the Query window with nothing in
any of the "Add Criteria" fields, its works fine.<br>
<br>
Any ideas??<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Adrian Carter
Technical Manager
Leading Edge Internet

Web       <a class="moz-txt-link-freetext" href="http://www.lei.net.au">http://www.lei.net.au</a> <a class="moz-txt-link-freetext" href="http://support.lei.net.au">http://support.lei.net.au</a>
Direct    +61 2 6163 6162  Support 1 300 662 415
E-mail    <a class="moz-txt-link-abbreviated" href="mailto:cartera@lei.net.au">cartera@lei.net.au</a>
</pre>
</body>
</html>