[rt-users] Bug in Query Builder??

Adrian Carter cartera at lei.net.au
Tue Jun 21 03:46:40 EDT 2005


yeah... If the "Add Criteria" fields have values and you try and delete 
the top level parent query it barfs.

I guess the 'delete' button needs it association to the Add Criteria 
button broken.. they must live in the same form area....

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...

Andrew Xenides wrote:

> yeh, that has happened to me from time to time.
>  
> 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.
>  
>
> **Andrew Xenides
> ****System Administrator
> ****EscapeNet
> ****465 South Road
> ****Keswick SA 5035
> ****T: (08) 8292 5200
> ****F: (08) 8292 5299
> ****E: andrew at staff.esc.net.au <mailto:andrew at staff.esc.net.au>
> ****W: http://www.esc.net.au**
>
>  
>
>     ------------------------------------------------------------------------
>     *From:* rt-users-bounces at lists.bestpractical.com
>     [mailto:rt-users-bounces at lists.bestpractical.com] *On Behalf Of
>     *Adrian Carter
>     *Sent:* Tuesday, 21 June 2005 3:43 PM
>     *To:* rt-users at lists.bestpractical.com
>     *Subject:* [rt-users] Bug in Query Builder??
>
>     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 at lei.net.au
>    
>

-- 
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 at lei.net.au

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20050621/0c389a13/attachment.htm>


More information about the rt-users mailing list