Download limit json rest api

This commit is contained in:
fredtempez 2021-03-06 17:40:35 +01:00
parent 7dc0b4caf8
commit 9b6f8f1c11

View File

@ -919,7 +919,14 @@ class download extends common {
}
}
foreach ($itemIds as $key) {
self::$items[$key] = $this->getData(['module', $this->getUrl(0), 'items', $key]);
self::$items[$key] = [
$this->getData(['module', $this->getUrl(0), 'items', $key, 'title']),
$this->getData(['module', $this->getUrl(0), 'items', $key, 'content']),
$this->getData(['module', $this->getUrl(0), 'items', $key, 'picture']),
$this->getData(['module', $this->getUrl(0), 'items', $key, 'file']),
$this->getData(['module', $this->getUrl(0), 'items', $key, 'fileVersion']),
$this->getData(['module', $this->getUrl(0), 'items', $key, 'fileDate'])
];
}
$this->addOutput([
'display' => self::DISPLAY_JSON,