add feature to delete media of Charactergroupsquests (implements #6)
This commit is contained in:
parent
64a47dfc5f
commit
c6142fb5cf
6 changed files with 88 additions and 25 deletions
|
|
@ -181,6 +181,16 @@
|
|||
$this->Charactergroupsquests->uploadMediaForQuest($this->Auth->getUserId(), $seminary['id'], $quest['id'], $file, $filename);
|
||||
}
|
||||
}
|
||||
|
||||
// Delete media
|
||||
if(!is_null($this->request->getPostParam('deletemedia')))
|
||||
{
|
||||
$uploadIds = $this->request->getPostParam('uploads');
|
||||
var_dump($uploadIds);
|
||||
foreach($uploadIds as $uploadId) {
|
||||
$this->Uploads->deleteSeminaryupload($uploadId);
|
||||
}
|
||||
}
|
||||
|
||||
// Set XPs of Character groups for this Character groups Quest
|
||||
if(!is_null($this->request->getPostParam('setxps')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue