SAAS-1158: Station podcast on Radio Page design implementation

Fix some pagination functionality
This commit is contained in:
drigato 2015-11-09 13:44:45 -05:00
parent ea9f0c8929
commit 372e28f82e
7 changed files with 78 additions and 47 deletions

View file

@ -240,7 +240,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
$episodes = PodcastEpisodesQuery::create()
->filterByDbPodcastId($podcastId);
if ($isStationPodcast) {
if ($isStationPodcast && $limit != 0) {
$episodes = $episodes->setLimit($limit);
}
// XXX: We should maybe try to alias this so we don't pass CcFiles as an array key to the frontend.