From 2d46f3c018ec0fe0ad69152383ca274328595a0f Mon Sep 17 00:00:00 2001 From: Samuel Trstensky Date: Thu, 20 Jun 2019 15:06:23 +0200 Subject: [PATCH] Fixed bug (91) --- src/HasMedia/HasMediaCollectionsTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HasMedia/HasMediaCollectionsTrait.php b/src/HasMedia/HasMediaCollectionsTrait.php index f2f2699..66a6847 100644 --- a/src/HasMedia/HasMediaCollectionsTrait.php +++ b/src/HasMedia/HasMediaCollectionsTrait.php @@ -89,7 +89,7 @@ public function processMedium( $inputMedium, $mediaCollection ) { if ( isset( $inputMedium['action'] ) && $inputMedium['action'] == 'delete' ) { $medium->delete(); } else { - $medium->customProperties = $inputMedium['meta_data']; + $medium->custom_properties = $inputMedium['meta_data']; $medium->save(); } }