Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #19 from checkerschaf/master
Browse files Browse the repository at this point in the history
Fix filling the attributes
  • Loading branch information
mikebronner authored Aug 25, 2019
2 parents 4745e45 + 505723f commit a824210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MapMarker.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct($name, $attribute = null, callable $resolveCallback

protected function fillAttributeFromRequest(NovaRequest $request, $requestAttribute, $model, $attribute)
{
foreach ($requestAttribute as $field) {
foreach ($requestAttribute as $field => $value) {
if ($request->exists($field)) {
$model->{$field} = json_decode($request[$field], true);
}
Expand Down

0 comments on commit a824210

Please sign in to comment.