Commit 3c2d83bd authored by Sylvain's avatar Sylvain

Bug Prefix Suffix select|input

parent b10d2176
......@@ -860,7 +860,7 @@ class Field2Bt4
if (!empty($this->prefix)) {
$template = '<div class="input-group-prepend">' . PHP_EOL;
if (preg_match('/<(button|img).*/', $this->prefix)) {
if (preg_match('/<(button|img|select|input).*/', $this->prefix)) {
$template .= ' %s' . PHP_EOL;
} else {
$template .= ' <div class="input-group-text">%s</div>' . PHP_EOL;
......@@ -883,7 +883,7 @@ class Field2Bt4
if (!empty($this->suffix)) {
$template = '<div class="input-group-append">' . PHP_EOL;
if (preg_match('/<(button|img).*/', $this->suffix)) {
if (preg_match('/<(button|img|select|input).*/', $this->suffix)) {
$template .= ' %s' . PHP_EOL;
} else {
$template .= ' <div class="input-group-text">%s</div>' . PHP_EOL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment