Skip to content

Commit

Permalink
Merge pull request #192 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 6.0.5
  • Loading branch information
M0rgan01 authored Feb 12, 2024
2 parents f4048a3 + 9515bc1 commit afdbe64
Show file tree
Hide file tree
Showing 9 changed files with 215 additions and 58 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_linklist</name>
<displayName><![CDATA[Link List]]></displayName>
<version><![CDATA[6.0.4]]></version>
<version><![CDATA[6.0.5]]></version>
<description><![CDATA[Adds a block with several links.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion ps_linklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct()
{
$this->name = 'ps_linklist';
$this->author = 'PrestaShop';
$this->version = '6.0.4';
$this->version = '6.0.5';
$this->need_instance = 0;
$this->tab = 'front_office_features';

Expand Down
8 changes: 1 addition & 7 deletions src/Controller/Admin/Improve/Design/LinkBlockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,10 @@
use PrestaShop\PrestaShop\Core\Form\FormHandlerInterface;
use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController;
use PrestaShopBundle\Security\Annotation\AdminSecurity;
use PrestaShopBundle\Security\Annotation\ModuleActivated;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
* Class LinkBlockController.
*
* @ModuleActivated(moduleName="ps_linklist", redirectRoute="admin_module_manage")
*/
class LinkBlockController extends FrameworkBundleAdminController
{
/**
Expand Down Expand Up @@ -198,7 +192,7 @@ public function deleteAction($linkBlockId)
public function updatePositionsAction(Request $request, $hookId)
{
$positionsData = [
'positions' => $request->request->get('positions', null),
'positions' => $request->request->all()['positions'],
'parentId' => $hookId,
];

Expand Down
2 changes: 1 addition & 1 deletion upgrade/install-1.3.php → upgrade/install-1.3.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit;
}

function upgrade_module_1_3($object)
function upgrade_module_1_3_0($object)
{
return $object->registerHook('actionObjectCmsUpdateAfter') && $object->registerHook('actionObjectCmsDeleteAfter');
}
2 changes: 1 addition & 1 deletion upgrade/install-1.4.php → upgrade/install-1.4.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit;
}

function upgrade_module_1_4($object)
function upgrade_module_1_4_0($object)
{
return $object->registerHook('actionAdminStoresControllerUpdate_optionsAfter');
}
2 changes: 1 addition & 1 deletion upgrade/upgrade-3.0.php → upgrade/upgrade-3.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit;
}

function upgrade_module_3_0($object)
function upgrade_module_3_0_0($object)
{
Configuration::deleteByName('FOOTER_CMS');
Configuration::deleteByName('FOOTER_BLOCK_ACTIVATION');
Expand Down
2 changes: 1 addition & 1 deletion upgrade/upgrade-4.0.php → upgrade/upgrade-4.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit;
}

function upgrade_module_4_0($object)
function upgrade_module_4_0_0($object)
{
$result = true;
$result &= Db::getInstance()->execute('UPDATE `' . _DB_PREFIX_ . 'tab` SET `route_name` = "admin_link_block_list" WHERE `class_name` = "AdminLinkWidget"');
Expand Down
2 changes: 1 addition & 1 deletion upgrade/upgrade-5.0.php → upgrade/upgrade-5.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit;
}

function upgrade_module_5_0()
function upgrade_module_5_0_0()
{
$result = true;
$result &= Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'link_block_shop` ADD COLUMN `position` int(10) unsigned NOT NULL DEFAULT 0');
Expand Down
Loading

0 comments on commit afdbe64

Please sign in to comment.