Why I cannot delete monitors?

Support and queries relating to all previous versions of ZoneMinder
Locked
commat
Posts: 1
Joined: Fri Apr 14, 2006 9:24 pm

Why I cannot delete monitors?

Post by commat »

Why I cannot delete monitors?
I am authenticaded as admin.
Is it a bug?
or has been disabled for security reasons?

thank you.

ZoneMinder is a great software!


/*************************************/
/* This little patch solves part of the problem */
/************************************/
--- old/zm/zm_html_view_console.php 2006-04-14 20:17:45.000000000 -0400
+++ new/zm/zm_html_view_console.php 2006-04-14 22:59:00.000000000 -0400
@@ -168,6 +168,7 @@
if ( form.elements[i].checked )
{
checked = true;
+ form.mid.value = form.elements[i].value
break;
}
}
@@ -224,6 +225,7 @@
<form name="monitor_form" method="get" action="<?= $PHP_SELF ?>" onSubmit="return(confirmDelete());">
<input type="hidden" name="view" value="<?= $view ?>">
<input type="hidden" name="action" value="delete">
+<input type="hidden" name="mid" value="">
<tr>
<td class="smallhead" align="left"><?= date( "D jS M, g:ia" ) ?></td>
<td class="bighead" align="center"><strong><a href="http://www.zoneminder.com" target="ZoneMinder">ZoneMinder</a> <?= $zmSlangConsole ?> - <?php if ( canEdit( 'System' ) ) { ?><a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=state', 'zmState', <?= $jws['state']['w'] ?>, <?= $jws['state']['h'] ?> );"><?= $status ?></a> - <?php } ?><?= makeLink( "javascript: newWindow( '$PHP_SELF?view=version', 'zmVersion', ".$jws['version']['w'].", ".$jws['version']['h']." );", "v".ZM_VERSION, canEdit( 'System' ) ) ?></strong></td>

/********/
/* End */
/*******/
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yes this is a bug. If you search the forum under this topic (1.22.x) you will find how to delete the monitor from the database. The fix is in 1.22.1

Regards,
Corey
Locked