We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f72c91f + 6e04faf commit ec7d10eCopy full SHA for ec7d10e
Model/Import/Category.php
@@ -1035,7 +1035,8 @@ private function saveCategories(): self
1035
if (isset($attrParams['options'][strtolower($attrValue)])) {
1036
$attrValue = $attrParams['options'][strtolower($attrValue)];
1037
}
1038
- } elseif ('datetime' == $attribute->getBackendType() && strtotime($attrValue)) {
+ } elseif ('datetime' == $attribute->getBackendType() && is_string($attrValue)
1039
+ && strtotime($attrValue)) {
1040
$attrValue = (new \DateTime($attrValue))->format(DateTime::DATETIME_PHP_FORMAT);
1041
} elseif ($backModel && 'available_sort_by' != $attrCode) {
1042
$attribute->getBackend()->beforeSave($category);
0 commit comments