瀏覽代碼

fix name like aaa.bbb

pianzhou2021 3 年之前
父節點
當前提交
acb72e3d3c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Form/Concerns/HasFiles.php

+ 4 - 0
src/Form/Concerns/HasFiles.php

@@ -66,6 +66,10 @@ trait HasFiles
      */
     public function findFieldByName(?string $column)
     {
+        if ($field = $this->builder->field($column)) {
+            return $field;
+        }
+
         $columns = explode('.', $column);
         $field = $this->builder->field($columns[0]);
         unset($columns[0]);