Skip to content

Commit

Permalink
Fix solo inputs with prepend options
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfranzoia committed Jun 4, 2014
1 parent 57c79e7 commit 8816067
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions View/Helper/Bs3FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,13 @@ protected function _initInputGroup() {
$divOptions = $this->addClass($divOptions, 'input-group-' . $size);
}

if (!isset($this->_customInputOptions['beforeInput'])) {
$this->_customInputOptions['beforeInput'] = '';
}
if (!isset($this->_customInputOptions['afterInput'])) {
$this->_customInputOptions['afterInput'] = '';
}

$this->_customInputOptions['beforeInput'] .= $this->Html->tag('div', null, $divOptions) . $prepend;
$this->_customInputOptions['afterInput'] = $append . '</div>' . $this->_customInputOptions['afterInput'];
}
Expand Down

0 comments on commit 8816067

Please sign in to comment.