Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgati/ceb8f565b98b9b7c332b7b416d50ef95 to your computer and use it in GitHub Desktop.
Save hgati/ceb8f565b98b9b7c332b7b416d50ef95 to your computer and use it in GitHub Desktop.
Marasvit Feed Bug Fix
From de0865396b6989dc2f8d0af68f26d8735cbacd8c Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 27 Sep 2023 14:41:08 +0900
Subject: [PATCH] Fixing the issue where an error occurs when clicking the
"Preview Feed" button. (Mirasvit Devs fails to comprehend the issues outside
their own PC environment.)
---
src/Feed/Controller/Adminhtml/Feed/Save.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Feed/Controller/Adminhtml/Feed/Save.php b/src/Feed/Controller/Adminhtml/Feed/Save.php
index 4513011..c122a6b 100644
--- a/src/Feed/Controller/Adminhtml/Feed/Save.php
+++ b/src/Feed/Controller/Adminhtml/Feed/Save.php
@@ -135,6 +135,7 @@ class Save extends Feed
$feed['format_serialized'] = SerializeService::encode($value);
continue;
}
+ if(!is_array($value)) continue; // Fixed Mirasvit Feed v1.3.8 BUG: 2023.09.27
foreach ($value as $key => $item) {
$feed[$key] = $item;
--
2.34.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment