reorder position on folder and category tables before delete action
This commit is contained in:
@@ -198,4 +198,11 @@ trait PositionManagementTrait {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function reorderBeforeDelete()
|
||||
{
|
||||
$this->createQuery()
|
||||
->filterByParent($this->getParent())
|
||||
->update(array('Position' => '(position-1)'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user