Skip to content

Commit 9f982c7

Browse files
Update app/Http/Controllers/MeasureController.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 9393d3d commit 9f982c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/MeasureController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ public function store(Request $request)
196196
]
197197
);
198198

199-
$request['attributes'] = implode(' ', $request->get('attributes') !== null ? $request->get('attributes') : []);
199+
$attributes = $request->get('attributes');
200+
$request['attributes'] = $attributes !== null ? implode(' ', $attributes) : null;
200201

201202
$measure = Measure::query()->create($request->all());
202203
// $measure = new Measure();

0 commit comments

Comments
 (0)