Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Core mods #1

Open
geoplanet opened this issue Jul 29, 2016 · 1 comment
Open

Core mods #1

geoplanet opened this issue Jul 29, 2016 · 1 comment

Comments

@geoplanet
Copy link
Contributor

For the podcast assembler function, changes are required in Server to obtain the media_id for the newly created media object so that the extended media record can be created.
At line 184 of controllers/media.php:

      foreach($media as $item) 
    {
    $id = $this->MediaModel('save',$item);
        return array(true, 'Media Saved!', $id);
    }
geoplanet added a commit that referenced this issue Jul 29, 2016
@geoplanet
Copy link
Contributor Author

Should be:

$items = array();
foreach($media as $item)
{
$items[] = $this->MediaModel('save',$item);
}
return array(true,'Media Saved',$items);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant