Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #31 from jtojnar/master
Browse files Browse the repository at this point in the history
fix a typo in pull request #17
  • Loading branch information
hrach committed Aug 2, 2015
2 parents 89e3dc4 + ae39e4d commit b1386bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rendering/Bs3FormRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private function controlsInit()
$this->form->getElementPrototype()->addClass('form-horizontal');
foreach ($this->form->getControls() as $control) {
if ($control instanceof Controls\Button) {
$markAsPrimary = $control === $this->primaryButton || (!isset($this->primary) && empty($usedPrimary) && $control->parent instanceof Form);
$markAsPrimary = $control === $this->primaryButton || (!isset($this->primaryButton) && empty($usedPrimary) && $control->parent instanceof Form);
if ($markAsPrimary) {
$class = 'btn btn-primary';
$usedPrimary = TRUE;
Expand Down

0 comments on commit b1386bf

Please sign in to comment.