Compare commits
3 Commits
6441fa4901
...
feature/is
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f4ef934b3 | |||
| 7cee735780 | |||
| 34452ef6a3 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
is_imageslider/vendor/
|
||||
@ -10,6 +10,7 @@ if (file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
}
|
||||
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Oksydan\IsImageslider\Hook\HookInterface;
|
||||
use Oksydan\IsImageslider\Installer\ImageSliderInstaller;
|
||||
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
|
||||
@ -66,11 +67,11 @@ class Is_imageslider extends Module implements WidgetInterface
|
||||
return $this->getInstaller()->dropTables() && parent::uninstall();
|
||||
}
|
||||
|
||||
public function getContent(): void
|
||||
public function getContent()
|
||||
{
|
||||
\Tools::redirectAdmin(SymfonyContainer::getInstance()->get('router')->generate('is_imageslider_controller'));
|
||||
$url = SymfonyContainer::getInstance()->get('router')->generate('is_imageslider_controller');
|
||||
return new RedirectResponse($url);
|
||||
}
|
||||
|
||||
/**
|
||||
* @template T
|
||||
*
|
||||
|
||||
@ -58,7 +58,7 @@ final class ImageSliderQueryBuilder extends AbstractDoctrineQueryBuilder
|
||||
$searchCriteria->getOrderWay()
|
||||
)
|
||||
->setFirstResult($searchCriteria->getOffset() ?? 0)
|
||||
->setMaxResults($searchCriteria->getLimit());
|
||||
->setMaxResults($searchCriteria->getLimit() ?? 10);
|
||||
|
||||
$qb->orderBy('position');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user