Skip to content

Commit

Permalink
Fixed DrawForm, form set null action
Browse files Browse the repository at this point in the history
  • Loading branch information
bacinsky committed Jan 28, 2014
1 parent 2a97167 commit 3f418c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WebinoDraw/View/Helper/DrawForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ protected function createForm(array $spec)
if (isset($spec['route'])) {
try {
$routeFormAction = $this->resolveRouteFormAction($spec['route']);

} catch (\Exception $exc) {
throw new RuntimeException(
$exc->getMessage()
Expand All @@ -211,10 +212,9 @@ protected function createForm(array $spec)
$exc
);
}
}

$formAction = !empty($routeFormAction) ? $routeFormAction : null;
$form->setAttribute('action', $formAction);
$form->setAttribute('action', $routeFormAction);
}

return $form;
}
Expand Down

0 comments on commit 3f418c9

Please sign in to comment.