Delete all matches option in Filters dialog
Delete all matches option in Filters dialog
Hi!
I have several events.
-Opened the filter window. Set up a rule to test it: Id equal to 160, then Submit. Event list updates correctly.
-Then check "Delete all matches:", Submit, event is still there. Execute - still nothing. What am I doing wrong...?
-Zmfilter.log shows nothing related to this, only the eventdump and purgewhenfull actions.
I know that I can delete the event by selecting it in the event list and clicking "delete", but why doesn't delete from filter window?
Also, why two buttons: Submit and Execute? What's the difference between them?
I have several events.
-Opened the filter window. Set up a rule to test it: Id equal to 160, then Submit. Event list updates correctly.
-Then check "Delete all matches:", Submit, event is still there. Execute - still nothing. What am I doing wrong...?
-Zmfilter.log shows nothing related to this, only the eventdump and purgewhenfull actions.
I know that I can delete the event by selecting it in the event list and clicking "delete", but why doesn't delete from filter window?
Also, why two buttons: Submit and Execute? What's the difference between them?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Same here
I am running ZM 1.22.3 on FC6 with Apache 2.
The workstations I access it on are running FC6 - 2.6.18-1.2849. Mozilla FireFox 1.5.0.10. I also access ZM on a Unbutu 6.10 workstation running FireFox 2. I did some testing by accessing ZM on a Windows XP box with FireFox 2. All the same results...
I get the results from the query. For example I run a query for all monitors to delete any event prior to 4/15/2007. The result window appears with accurate results. But executing does nothing. The results just sit there. Then I have to do a view all and then check the delete box, click on delete...
I have never been able to get it to work.
The workstations I access it on are running FC6 - 2.6.18-1.2849. Mozilla FireFox 1.5.0.10. I also access ZM on a Unbutu 6.10 workstation running FireFox 2. I did some testing by accessing ZM on a Windows XP box with FireFox 2. All the same results...
I get the results from the query. For example I run a query for all monitors to delete any event prior to 4/15/2007. The result window appears with accurate results. But executing does nothing. The results just sit there. Then I have to do a view all and then check the delete box, click on delete...
I have never been able to get it to work.
Samo problem here with deleting (but also with executing E-Mail delivery and Message delivery) - running on Mandriva 2007, tried with Opera (can't check version now), FireFox 2, IE 7.0, IE 6.0 - no errors in browser or in Mandriva log but nothing happens.
I think that when I solve this one (deleting through Event FIlter and Exectuing) I will sole E-Mail/Message thing too.
Regards,
Aj
I think that when I solve this one (deleting through Event FIlter and Exectuing) I will sole E-Mail/Message thing too.
Regards,
Aj
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I have had a bit of a look at this issue now. Can you try looking in zm_actions.php and finding the section that looks like and move the last four lines about the second if, like so and also remove one of the tests from that if. See if that works.
Apologies for the formatting but it's difficult to get things lined on in these boxes!
Code: Select all
if ( $execute )
{
$temp_filter_name = "_TempFilter".time();
}
if ( $filter_name || $new_filter_name )
{
if ( $temp_filter_name )
$filter_name = $temp_filter_name;
elseif ( $new_filter_name )
$filter_name = $new_filter_name;
Code: Select all
if ( $execute )
{
$temp_filter_name = "_TempFilter".time();
}
if ( $temp_filter_name )
$filter_name = $temp_filter_name;
elseif ( $new_filter_name )
$filter_name = $new_filter_name;
if ( $filter_name )
{
Apologies for the formatting but it's difficult to get things lined on in these boxes!
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: