Skip to content

Commit 2b9af3d

Browse files
committed
Fix resolving static field values (model/request/default)
1 parent 3921c4d commit 2b9af3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BootstrapForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ public function staticField($name, $label = null, $value = null, array $options
255255

256256
$label = $this->getLabelTitle($label, $name, $options);
257257
$comment = $this->getComment($options);
258+
$value = $this->form->getValueAttribute($name, $value);
258259
$inputElement = '<p' . $this->html->attributes($options) . '>' . e($value) . '</p>';
259260
$wrapperOptions = $this->isHorizontal() ? ['class' => $this->getRightColumnClass()] : [];
260261
$wrapperElement = '<div' . $this->html->attributes($wrapperOptions) . '>' . $inputElement . $this->getFieldError($name) . $comment . '</div>';

0 commit comments

Comments
 (0)