<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
yeah... If the "Add Criteria" fields have values and you try and delete
the top level parent query it barfs.<br>
<br>
I guess the 'delete' button needs it association to the Add Criteria
button broken.. they must live in the same form area....<br>
<br>
Since adding values to "Add Criteria" and deleting only 'parts' of the
query doesn't add the criteria in the delete processes anyway, Im not
sure why they would live in the same form anyway...<br>
<br>
Andrew Xenides wrote:
<blockquote cite="mid20050621061828.3736D61D3A8@sr-gw.esc.net.au"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2668" name="GENERATOR">
<style></style>
<div align="left" dir="ltr"><span class="792511706-21062005"><font
color="#0000ff" face="Arial" size="2">yeh, that has happened to me
from time to time. </font></span></div>
<div align="left" dir="ltr"><span class="792511706-21062005"></span> </div>
<div align="left" dir="ltr"><span class="792511706-21062005"><font
color="#0000ff" face="Arial" size="2">i just delete everything and
start over. i beleive it only happens when you are deleteing the last
thing and adding at the same time.</font></span></div>
<div> </div>
<p class="MsoNormal" align="left"><strong><b><font color="navy"
face="Arial" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">Andrew
Xenides<br>
</span></font></b></strong><strong><b><font color="navy" face="Arial"
size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">System
Administrator<br>
</span></font></b></strong><strong><b><font color="navy" face="Arial"
size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">EscapeNet <br>
</span></font></b></strong><st1:Street><st1:address
style="background-position: left bottom; background-image: url(res://ietag.dll/#34/#1001); background-repeat: repeat-x;"><strong><b><font
color="navy" face="Arial" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">465 South
Road<br>
</span></font></b></strong></st1:address></st1:Street><strong><b><font
color="navy" face="Arial" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">Keswick SA
5035<br>
</span></font></b></strong><strong><b><font color="navy" face="Arial"
size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">T: (08) 8292
5200<br>
</span></font></b></strong><strong><b><font color="navy" face="Arial"
size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">F: (08) 8292
5299<br>
</span></font></b></strong><strong><b><font color="navy" face="Arial"
size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">E: <a
href="mailto:andrew@staff.esc.net.au">andrew@staff.esc.net.au</a><br>
</span></font></b></strong><strong><b><font color="navy" face="Arial"
size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">W:
<a class="moz-txt-link-freetext" href="http://www.esc.net.au">http://www.esc.net.au</a></span></font></b></strong></p>
<div> </div>
<br>
<blockquote
style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"
dir="ltr">
<div class="OutlookMessageHeader" align="left" dir="ltr"
lang="en-us">
<hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated"
href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a>
[<a class="moz-txt-link-freetext"
href="mailto:rt-users-bounces@lists.bestpractical.com">mailto:rt-users-bounces@lists.bestpractical.com</a>]
<b>On Behalf Of </b>Adrian
Carter<br>
<b>Sent:</b> Tuesday, 21 June 2005 3:43 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated"
href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<b>Subject:</b> [rt-users] Bug in Query Builder??<br>
</font><br>
</div>
<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>
</blockquote>
</blockquote>
<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>