fix: fixed an API vs documentation mismatch for the nids exports

pull/2179/head
iglocska 2017-05-10 16:35:17 +02:00
parent c80621d2ef
commit e34634201b
1 changed files with 5 additions and 3 deletions

View File

@ -1909,7 +1909,7 @@ class EventsController extends AppController {
} else {
$data = $this->request->data;
}
$paramArray = array('id', 'continue', 'tags', 'from', 'to', 'last', 'type', 'enforceWarninglist');
$paramArray = array('id', 'continue', 'tags', 'from', 'to', 'last', 'type', 'enforceWarninglist', 'eventid');
if (!isset($data['request'])) {
$data = array('request' => $data);
}
@ -1919,13 +1919,15 @@ class EventsController extends AppController {
}
}
$simpleFalse = array('id', 'continue', 'tags', 'from', 'to', 'last', 'type', 'enforceWarninglist', 'includeAllTags');
$simpleFalse = array('id', 'continue', 'tags', 'from', 'to', 'last', 'type', 'enforceWarninglist', 'includeAllTags', 'eventid');
foreach ($simpleFalse as $sF) {
if (!is_array(${$sF}) && (${$sF} === 'null' || ${$sF} == '0' || ${$sF} === false || strtolower(${$sF}) === 'false')) {
${$sF} = false;
}
}
if (!empty($eventid)) {
$id = $eventid;
}
if ($from) $from = $this->Event->dateFieldCheck($from);
if ($to) $to = $this->Event->dateFieldCheck($to);
if ($tags) $tags = str_replace(';', ':', $tags);