[ticket/102] Cover moving modules more and fix functional tests

B3P-102
This commit is contained in:
Marc Alexander
2014-04-08 00:19:18 +02:00
parent 69c748e1e4
commit 2da97611a7
4 changed files with 45 additions and 2 deletions

View File

@@ -874,6 +874,7 @@ class portal_module
*/
public function move_module_up($module_id)
{
$updated = false;
$module_data = $this->get_move_module_data($module_id);
if (($module_data !== false) && ($module_data['module_order'] > 1))
@@ -904,6 +905,7 @@ class portal_module
*/
public function move_module_down($module_id)
{
$updated = false;
$module_data = $this->get_move_module_data($module_id);
if ($module_data !== false && $this->get_last_module_order($module_data['module_column']) != $module_data['module_order'])