[ticket/416] Use only one method for moving module vertically

B3P-416
This commit is contained in:
Marc Alexander
2014-11-29 12:53:44 +01:00
parent a55b1002e1
commit 16c79dea35
3 changed files with 15 additions and 30 deletions

View File

@@ -403,11 +403,11 @@ class portal_module
if ($action == 'move_up')
{
$this->modules_manager->move_module_up($module_id);
$this->modules_manager->move_module_vertical($module_id, \board3\portal\portal\modules\database_handler::MOVE_DIRECTION_UP);
}
else if ($action == 'move_down')
{
$this->modules_manager->move_module_down($module_id);
$this->modules_manager->move_module_vertical($module_id, \board3\portal\portal\modules\database_handler::MOVE_DIRECTION_DOWN);
}
else if($action == 'move_right')
{