Skip to content

Commit

Permalink
Merge pull request #16 from lopes-vincent/master
Browse files Browse the repository at this point in the history
Fix products position update
  • Loading branch information
roadster31 authored Dec 26, 2018
2 parents 21be54e + 3d17fd4 commit 241fc74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#Selection module changelog


###1.1.6
- Fix products position update

###1.1.4
- #13 added missing update folder

Expand Down
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.1.5</version>
<version>1.1.6</version>
<authors>
<author>
<name>Maxime BRUCHET</name>
Expand Down
10 changes: 0 additions & 10 deletions Controller/SelectionContainerUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,16 +269,6 @@ public function setToggleVisibilityAction()
return $this->nullResponse();
}

protected function createUpdateProductPositionEvent($positionChangeMode, $positionValue)
{
return new UpdatePositionEvent(
$this->getRequest()->get('selection_container_id', null),
$positionChangeMode,
$positionValue,
Selection::getModuleId()
);
}

public function createSelectionContainerAction()
{
$form = new SelectionCreateForm($this->getRequest());
Expand Down
2 changes: 1 addition & 1 deletion Controller/SelectionUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function setToggleVisibilityAction()
return $this->nullResponse();
}

protected function createUpdateProductPositionEvent($positionChangeMode, $positionValue)
protected function createUpdatePositionEvent($positionChangeMode, $positionValue)
{
return new UpdatePositionEvent(
$this->getRequest()->get('product_id', null),
Expand Down

0 comments on commit 241fc74

Please sign in to comment.