Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Bugfix: Move item to bottom of list on scope change #23

Merged
merged 1 commit into from Feb 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Lookitsatravis/Listify/Listify.php
Expand Up @@ -848,6 +848,7 @@ private function checkScope()
$this->swapChangedAttributes();
if($this->lowerItem()) $this->decrementPositionsOnLowerItems();
$this->swapChangedAttributes();
$this->setListifyPosition(NULL); //make this item "not in the list" so subsequent call to addToListBottom() works (b/c it only operates on items that have no position)
$method_name = "addToList" . $this->addNewAt();
$this->$method_name();
}
Expand Down