Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yang5664 opened this issue May 13, 2020 · 1 comment
Closed

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

yang5664 opened this issue May 13, 2020 · 1 comment
Labels

Comments

@yang5664
Copy link

yang5664 commented May 13, 2020

  • 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);
@yang5664 yang5664 changed the title HasMany無法進行欄位驗證 HasMany無法正常顯示欄位驗證錯誤 May 13, 2020
@stale
Copy link

stale bot commented Jul 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant