Skip to content

Commit

Permalink
[Applications] Fixes: Error when displaying apply form for a job with…
Browse files Browse the repository at this point in the history
… no user.
  • Loading branch information
TiSiE committed May 4, 2018
1 parent e892947 commit f57a130
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ protected function configureContainer(Container $container)
$job = $application->getJob();

/** @var $settings \Applications\Entity\Settings */
$settings = $job->getUser()->getSettings('Applications');
$formSettings = $settings->getApplyFormSettings();
$settings = ($user = $job->getUser()) ? $user->getSettings('Applications') : null;
$formSettings = $settings ? $settings->getApplyFormSettings() : null;

if ($formSettings && $formSettings->isActive()) {
$container->disableElements($formSettings->getDisableElements());
Expand Down

0 comments on commit f57a130

Please sign in to comment.