We always use markEids[] now

This commit is contained in:
Isaac Connor 2019-01-04 16:29:16 -05:00
parent de0ef6ce43
commit 5b5905c83a
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ if ( !canEdit('Events') ) {
if ( $action == 'eventdetail' ) {
$dbConn->beginTransaction();
foreach ( getAffectedIds('markEid') as $markEid ) {
foreach ( $_REQUEST['markEids'] as $markEid ) {
dbQuery('UPDATE Events SET Cause=?, Notes=? WHERE Id=?',
array(
$_REQUEST['newEvent']['Cause'],

View File

@ -33,7 +33,7 @@ if ( isset($_REQUEST['eid']) ) {
$sqlValues = array();
foreach ( $_REQUEST['eids'] as $eid ) {
$sqlWhere[] = 'E.Id = ?';
$sqlValues[] = $eid;
$sqlValues[] = validInt($eid);
}
unset($eid);
$sql .= join(' OR ', $sqlWhere);
@ -80,14 +80,14 @@ if ( $mode == 'single' ) {
<?php
if ( $mode == 'single' ) {
?>
<input type="hidden" name="eid" value="<?php echo $eid ?>"/>
<input type="hidden" name="markEids[]" value="<?php echo validInt($eid) ?>"/>
<?php
} else if ( $mode = 'multi' ) {
?>
<?php
foreach ( $_REQUEST['eids'] as $eid ) {
?>
<input type="hidden" name="markEids[]" value="<?php echo validHtmlStr($eid) ?>"/>
<input type="hidden" name="markEids[]" value="<?php echo validInt($eid) ?>"/>
<?php
}
}