Quelques corrections + init du module ClickAndCollect
This commit is contained in:
@@ -74,6 +74,7 @@ class GeneralLoop extends BaseLoop implements PropelSearchLoopInterface
|
||||
return new ArgumentCollection(
|
||||
Argument::createIntListTypeArgument('id'),
|
||||
Argument::createIntListTypeArgument('active'),
|
||||
Argument::createIntListTypeArgument('click_and_collect'),
|
||||
Argument::createEnumListTypeArgument('order',
|
||||
['city', 'title'], 'title')
|
||||
);
|
||||
@@ -93,6 +94,9 @@ class GeneralLoop extends BaseLoop implements PropelSearchLoopInterface
|
||||
if (null != $active = $this->getActive()) {
|
||||
$places->filterByActive($active);
|
||||
}
|
||||
if (null != $clickAndCollect = $this->getClickAndCollect()) {
|
||||
$places->filterByClickAndCollect($clickAndCollect);
|
||||
}
|
||||
|
||||
foreach ($this->getOrder() as $order) {
|
||||
switch ($order) {
|
||||
|
||||
Reference in New Issue
Block a user