diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php index ee0a0dad3..d649fa7d0 100644 --- a/admin-dev/ajax.php +++ b/admin-dev/ajax.php @@ -535,8 +535,11 @@ if (Tools::isSubmit('loadImportMatchs')) if (Tools::isSubmit('toggleScreencast')) { - $context->employee->show_screencast = (int)(!(bool)$context->employee->show_screencast); - $context->employee->save(); + if (Validate::isLoadedObject($context->employee)) + { + $context->employee->bo_show_screencast = !$context->employee->bo_show_screencast; + $context->employee->update(); + } } if (Tools::isSubmit('helpAccess')) diff --git a/admin-dev/ajax_send_mail_test.php b/admin-dev/ajax_send_mail_test.php index bb040e80f..704269824 100644 --- a/admin-dev/ajax_send_mail_test.php +++ b/admin-dev/ajax_send_mail_test.php @@ -43,5 +43,5 @@ $smtpPort = $_GET['smtpPort']; $smtpEncryption = $_GET['smtpEnc']; $result = Mail::sendMailTest(Tools::htmlentitiesUTF8($smtpChecked), Tools::htmlentitiesUTF8($smtpServer), Tools::htmlentitiesUTF8($content), Tools::htmlentitiesUTF8($subject), Tools::htmlentitiesUTF8($type), Tools::htmlentitiesUTF8($to), Tools::htmlentitiesUTF8($from), Tools::htmlentitiesUTF8($smtpLogin), Tools::htmlentitiesUTF8($smtpPassword), Tools::htmlentitiesUTF8($smtpPort), Tools::htmlentitiesUTF8($smtpEncryption)); -die($result ? 'ok' : 'fail'); +die($result === true ? 'ok' : $result); diff --git a/admin-dev/tabs/AdminCarts.php b/admin-dev/tabs/AdminCarts.php index 27c398fc0..c5f167d71 100644 --- a/admin-dev/tabs/AdminCarts.php +++ b/admin-dev/tabs/AdminCarts.php @@ -167,9 +167,9 @@ class AdminCarts extends AdminTab SELECT id_image FROM '._DB_PREFIX_.'image WHERE id_product = '.(int)($product['id_product']).' AND cover = 1'); - + $productObj = new Product($product['id_product']); - + /* Customization display */ $this->displayCustomizedDatas($customizedDatas, $product, $currency, $image, $tokenCatalog, $stock); if ($product['cart_quantity'] > $product['customizationQuantityTotal']) @@ -257,10 +257,7 @@ class AdminCarts extends AdminTab if (is_array($customizedDatas) AND isset($customizedDatas[(int)($product['id_product'])][(int)($product['id_product_attribute'])])) { - if (isset($image['id_image'])) - $image = new Image($image['id_image']); - else - $image = new Image(); + if ($image = new Image($image['id_image'])) echo '
diff --git a/admin-dev/tabs/AdminEmployees.php b/admin-dev/tabs/AdminEmployees.php
index fe492ded6..22cf33826 100644
--- a/admin-dev/tabs/AdminEmployees.php
+++ b/admin-dev/tabs/AdminEmployees.php
@@ -152,6 +152,14 @@ class AdminEmployees extends AdminTab
getFieldValue($obj, 'bo_uimode') == 'click' ? 'checked="checked" ' : '').'/>
'.$this->l('Show the welcome video on the dashbord of the back office').'
+
';
- echo '
- '.$this->l('Activate or deactivate the image map').'
'.$this->l('Format:').' JPG, GIF, PNG. '.$this->l('File size:').' '.(Tools::getMaxUploadSize() / 1024).''.$this->l('KB max.').' '.$this->l('If larger than the image size setting, the image will be reduced to ').' '.$largeSceneImageType['width'].'x'.$largeSceneImageType['height'].'px '.$this->l('(width x height). If smaller than the image-size setting, a white background will be added in order to achieve the correct image size.').'.
'.$this->l('Note: To change image dimensions, please change the \'large_scene\' image type settings to the desired size (in Back Office > Preferences > Images).').'

| - | '.$this->l('ID').' | -'.$this->l('Image map name:').' | -
|---|
'.$this->l('Mark all checkbox(es) of the categories for which the image map is to appear.').' *
-{l s ='To receive PrestaShop update warnings, you need to activate the allow_url_fopen command in your php.ini config file.'} [{l s ='more info'}]
{l s ='If you don\'t know how to do that, please contact your host administrator !'}