Skip to content

Commit

Permalink
ensure order is added to data when present
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Nov 13, 2024
1 parent d9b11cb commit 48798e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public static function fromModel(Model $model)
$data[$key] = $model->$key;
}

if ($model->order) {
$data['order'] = $model->order;
}

$entry = (new static)
->origin($model->origin_id)
->locale($model->site)
Expand Down

0 comments on commit 48798e1

Please sign in to comment.