Skip to content

Commit

Permalink
Fixed step dependencies checks in GeneratorController
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Jan 20, 2018
1 parent 7456454 commit 221f4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/GeneratorController.php
Expand Up @@ -139,7 +139,7 @@ public function stepAction(Request $request, string $requestStep, string $manage

// Make sure that dependencies exist, else redirect to first step with a message.
foreach ($step->getDependencies() as $stepName) {
if (!isset($character[$resolvedManagerName][$stepName])) {
if (!isset($character[$stepName])) {
$msg = $this->trans('steps.dependency_not_set', [
'%current_step%' => $step->getLabel(),
'%dependency%' => $this->stepsResolver->resolve($stepName, $resolvedManagerName)->getLabel(),
Expand Down

0 comments on commit 221f4a8

Please sign in to comment.