We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3cd11 commit 7fa9d3dCopy full SHA for 7fa9d3d
src/AttributeManager.php
@@ -153,6 +153,10 @@ public function getFieldValue(View $view)
153
if ($this->formModel && !in_array($fieldName, $this->formModel->getHidden())) {
154
$value = $this->formModel->getAttribute($fieldName);
155
}
156
+ $camelFieldName = Str::camel($fieldName);
157
+ if ($value === null && $this->formModel && method_exists($this->formModel, $camelFieldName)) {
158
+ $value = $this->formModel->getAttribute($camelFieldName);
159
+ }
160
if ($value === null && $view->offsetExists('value')) {
161
$value = $view->offsetGet('value');
162
0 commit comments