Skip to content

Commit 5cca4ce

Browse files
authored
[fix] $dataSets variable naming (#617)
* Fix $dataSets variable naming * Revert "Fix $dataSets variable naming" This reverts commit a06b2f0. * Add data sets to channel list projects route
1 parent 6ccfe8a commit 5cca4ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Goteo/Controller/ChannelController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ public function listProjectsAction(Request $request, $id, $type = 'available', $
190190

191191
$view= $channel->type=='normal' ? 'channel/list_projects' : 'channel/'.$channel->type.'/list_projects';
192192

193+
$dataSetsRepository = new DataSetRepository();
194+
$dataSets = $dataSetsRepository->getListByChannel([$id]);
195+
193196
return $this->viewResponse(
194197
$view,
195198
[
@@ -198,7 +201,8 @@ public function listProjectsAction(Request $request, $id, $type = 'available', $
198201
'title_text' => $title_text,
199202
'type' => $type,
200203
'total' => $total,
201-
'limit' => $limit
204+
'limit' => $limit,
205+
'dataSets' => $dataSets
202206
]
203207
);
204208
}

0 commit comments

Comments
 (0)