Addition to the previous commit

pull/639/head
Iglocska 2015-09-02 10:18:08 +02:00
parent 77adf624d9
commit 62532260ef
2 changed files with 3 additions and 2 deletions

View File

@ -3190,6 +3190,7 @@ class EventsController extends AppController {
}
public function exportChoice($id) {
if (!is_numeric($id)) throw new MethodNotAllowedException('Invalid ID');
$event = $this->Event->find('first' ,array(
'conditions' => array('id' => $id),
'recursive' => -1,

View File

@ -9,8 +9,8 @@
<?php if ($export['checkbox']):
echo h($export['checkbox_text']);
?>
<input id = "<?php echo $k . '_toggle';?>" type="checkbox" style="align;vertical-align:top;margin-top:8px;">
<span id ="<?php echo $k?>_set" style="display:none;"><?php echo h($export['checkbox_set']); ?></span>
<input id = "<?php echo h($k) . '_toggle';?>" type="checkbox" style="align;vertical-align:top;margin-top:8px;">
<span id ="<?php echo h($k);?>_set" style="display:none;"><?php echo h($export['checkbox_set']); ?></span>
<?php else: ?>
&nbsp;
<?php endif; ?>