[spalenque] - #6968 *WIP

This commit is contained in:
santipalenque 2014-11-04 12:45:54 -03:00 committed by Sebastian Marcet
parent 606f42d2e8
commit 8bc923482f
1 changed files with 1 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ class MarketPlaceAdminPage_Controller extends Page_Controller
switch (strtolower($marketplace_type)) {
case 'distribution': {
$distribution = $this->distribution_repository->getBy($query);
$distribution = $this->distribution_draft_repository->getBy($query);
if (!$distribution) throw new NotFoundEntityException('', '');
$render = new DistributionSapphireRender($distribution);
$distribution ->IsPreview = true;