Skip to content

HasMany無法正常顯示欄位驗證錯誤 #4612

@yang5664

Description

@yang5664
  • Laravel Version: 6.x
  • PHP Version:7.4
  • Laravel-admin: 1.7.9

Description:

目前判斷是PHP部分沒有在NestFormBuilder的時候將"LA_KEY"進行替換

image

HasMany驗證在 1.5.x版的時候是正常運作的

$model = $relation->getRelated()->replicate()->forceFill($data);

$forms[$key] = $this->buildNestedForm($this->column, $this->builder, $model)  /// 原先這邊是傳遞 $key後來改model,會造成新建立的資料沒有key造成相關錯誤問題
    ->fill($data);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions