From 81d9fde130889166541f46d00d83a9b8394f19ed Mon Sep 17 00:00:00 2001 From: Frederik Sauer Date: Wed, 2 Nov 2022 14:23:14 +0100 Subject: [PATCH] Fixed terms localization not working This will ensure localizations are stored correctly (https://github.com/statamic/eloquent-driver/issues/78) --- src/Taxonomies/Term.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Taxonomies/Term.php b/src/Taxonomies/Term.php index bdb35e27..190673fc 100644 --- a/src/Taxonomies/Term.php +++ b/src/Taxonomies/Term.php @@ -54,7 +54,7 @@ public static function makeModelFromContract(Contract $source) { $class = app('statamic.eloquent.terms.model'); - $data = $source->data(); + $data = $source->fileData(); if (! isset($data['template'])) { unset($data['template']);