diff --git a/src/protected/application/themes/BaseV1/views/panel/registrations.php b/src/protected/application/themes/BaseV1/views/panel/registrations.php index 73d0fbae4..b2d6be2ec 100644 --- a/src/protected/application/themes/BaseV1/views/panel/registrations.php +++ b/src/protected/application/themes/BaseV1/views/panel/registrations.php @@ -4,8 +4,8 @@ use MapasCulturais\Entities\Registration; $this->layout = 'panel'; $has_drafts_registration = false; -$drafts = $app->user->getRegistrationsNotAccountability(Registration::STATUS_DRAFT); -$sent = $app->user->getRegistrationsNotAccountability('sent', 3); +$drafts = $app->repo('Registration')->findByUser($app->user, Registration::STATUS_DRAFT); +$sent = $app->repo('Registration')->findByUser($app->user, 'sent'); $app->applyHookBoundTo($this, 'panel(registration.panel):begin', [&$sent,&$drafts]); ?>