Skip to content

Commit

Permalink
修复HasMany以及array表单渲染部分字段无法填充默认值问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Nov 16, 2020
1 parent f219ccb commit af28b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/NestedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ protected function formatField(Field $field)

protected function formatClass($name = null)
{
return str_replace('.', '_', $name ?: $this->relationName);
return str_replace('.', '_', $name ?: $this->relationName).'_'.$this->key;
}

protected function formatName($name = null)
Expand Down

0 comments on commit af28b17

Please sign in to comment.