diff --git a/core/lib/Thelia/Action/BaseCachedFile.php b/core/lib/Thelia/Action/BaseCachedFile.php index caa7c8ada..63f99dc1f 100644 --- a/core/lib/Thelia/Action/BaseCachedFile.php +++ b/core/lib/Thelia/Action/BaseCachedFile.php @@ -159,7 +159,7 @@ abstract class BaseCachedFile extends BaseAction // Create directory (recursively) if it does not exists. if ($create_if_not_exists && !is_dir($path)) { if (!@mkdir($path, 0777, true)) { - throw new \RuntimeException(sprintf("Failed to create %s/%s file in cache directory", $cache_base)); + throw new \RuntimeException(sprintf("Failed to create %s file in cache directory", $path)); } } diff --git a/core/lib/Thelia/Core/Template/Loop/Accessory.php b/core/lib/Thelia/Core/Template/Loop/Accessory.php index 8a7a80e27..de08f1f5b 100755 --- a/core/lib/Thelia/Core/Template/Loop/Accessory.php +++ b/core/lib/Thelia/Core/Template/Loop/Accessory.php @@ -123,10 +123,11 @@ class Accessory extends Product foreach ($results as $loopResultRow) { $accessoryProductId = $loopResultRow->get('ID'); - + \Thelia\Log\Tlog::getInstance()->notice($this->accessoryId); $loopResultRow ->set("ID" , $this->accessoryId[$accessoryProductId]) ->set("POSITION", $this->accessoryPosition[$accessoryProductId]) + ->set("ACCESSORY_ID", $accessoryProductId) ; } diff --git a/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php b/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php index 487665fc3..3cfedd5d3 100755 --- a/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php +++ b/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php @@ -166,6 +166,7 @@ class AssociatedContent extends Content ->set("ID" , $this->contentId[$relatedContentId]) ->set("CONTENT_ID", $relatedContentId) ->set("POSITION" , $this->contentPosition[$relatedContentId]) + ; } diff --git a/core/lib/Thelia/Core/Template/Loop/Document.php b/core/lib/Thelia/Core/Template/Loop/Document.php index ff57c62c7..b92318482 100644 --- a/core/lib/Thelia/Core/Template/Loop/Document.php +++ b/core/lib/Thelia/Core/Template/Loop/Document.php @@ -267,7 +267,7 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface $loopResult->addRow($loopResultRow); } catch (\Exception $ex) { // Ignore the result and log an error - Tlog::getInstance()->addError("Failed to process document in document loop: ", $this->args); + Tlog::getInstance()->addError(sprintf("Failed to process document in document loop: %s", $ex->getMessage()), $this->args); } } diff --git a/templates/backOffice/default/ajax/product-related-tab.html b/templates/backOffice/default/ajax/product-related-tab.html index bc6c38056..edaa101a9 100755 --- a/templates/backOffice/default/ajax/product-related-tab.html +++ b/templates/backOffice/default/ajax/product-related-tab.html @@ -105,7 +105,7 @@