From 48798e15f636edeb105dea9a8ad8eb36f8a94e48 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Wed, 13 Nov 2024 09:17:18 +0000 Subject: [PATCH] ensure order is added to data when present --- src/Entries/Entry.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entries/Entry.php b/src/Entries/Entry.php index 54d6aaf6..a2da56c3 100644 --- a/src/Entries/Entry.php +++ b/src/Entries/Entry.php @@ -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)