Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant