Skip to content

Commit 6a9d322

Browse files
committed
Ensure top-level columns don't get saved to JSON data on update as well. References #29.
1 parent bae694f commit 6a9d322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entries/Entry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function toModel()
4040
'uri' => $this->uri(),
4141
'date' => $this->hasDate() ? $this->date() : null,
4242
'collection' => $this->collectionHandle(),
43-
'data' => $data,
43+
'data' => $data->except(EntryQueryBuilder::COLUMNS),
4444
'published' => $this->published(),
4545
'status' => $this->status(),
4646
]);

0 commit comments

Comments
 (0)