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 @@
{loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"} - + {/loop} @@ -226,7 +226,7 @@
{loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"} - + {/loop} @@ -523,7 +523,7 @@ $(function() { $('.accessoryPositionChange').editable({ type : 'text', - title : '{intl l="Enter new accessory position"}', + title : "{intl l="Enter new accessory position"}", mode : 'popup', inputclass : 'input-mini', placement : 'left', @@ -541,7 +541,7 @@ $(function() { $('.contentPositionChange').editable({ type : 'text', - title : '{intl l="Enter new content position"}', + title : "{intl l="Enter new content position"}", mode : 'popup', inputclass : 'input-mini', placement : 'left', diff --git a/templates/backOffice/default/category-edit.html b/templates/backOffice/default/category-edit.html index 131853820..1885d8201 100755 --- a/templates/backOffice/default/category-edit.html +++ b/templates/backOffice/default/category-edit.html @@ -228,7 +228,7 @@
{loop type="auth" name="can_create" role="ADMIN" resource="admin.configuration.category" access="UPDATE"} - + {/loop} diff --git a/templates/backOffice/default/folder-edit.html b/templates/backOffice/default/folder-edit.html index 31d1c19f7..e86790634 100755 --- a/templates/backOffice/default/folder-edit.html +++ b/templates/backOffice/default/folder-edit.html @@ -152,7 +152,7 @@
- +{/block} {block name="javascript-initialization"} {javascripts file='assets/js/dropzone.js'} diff --git a/templates/backOffice/default/product-edit.html b/templates/backOffice/default/product-edit.html index 3212d3d65..36eff1a6e 100755 --- a/templates/backOffice/default/product-edit.html +++ b/templates/backOffice/default/product-edit.html @@ -154,7 +154,9 @@ $(function() { $('.nav-tabs a[data-href]').on('shown.bs.tab', function(ev) { var $this = $(this); $($this.attr('href')).load($this.data('href'), function(ev) { - eval($this.data('callback') + '();'); + if($this.data('callback')) { + eval($this.data('callback') + '();'); + } }); }); diff --git a/web/install/I18n/en_US.php b/web/install/I18n/en_US.php old mode 100644 new mode 100755