can't delete monitors - bug in php file *solved*

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
acrid
Posts: 68
Joined: Sun Aug 24, 2003 10:26 pm
Location: Germany

can't delete monitors - bug in php file *solved*

Post by acrid »

i couldn't delete monitors from the console view (zm 1.22.0 full)

changed zm_actions.php line 992
from

Code: Select all

if (isset($mid) && canEdit( 'Monitors', $mid ) )
into

Code: Select all

if ( (isset($mid) || isset($mark_mids)) && canEdit( 'Monitors', $mid ) )
works now :D
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes, this was a late 'tidy up php warnings' fix that ended up breaking it. This whole section needs a bit of a clean up at some point, while I was going through it earlier I found a few others inconsistencies that I'll put into a 1.22.1 release which I'm sure won't be too long coming :lol:
Phil
proxorp
Posts: 9
Joined: Wed Feb 23, 2005 8:43 pm

Post by proxorp »

Thanks for the post acrid. This was driving me bonkers. I was thinking I had some permissions set wrong. Your patch did the trick for me.
Locked