From 1ab3aa715fdf2c13010ac4c53b0385a5934a3d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A8=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= <solidovic@gmail.com> Date: Sun, 28 Sep 2014 02:06:49 +0400 Subject: [PATCH] fix --- ~dev_rating/application/classes/Controller/Handler/Map.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/~dev_rating/application/classes/Controller/Handler/Map.php b/~dev_rating/application/classes/Controller/Handler/Map.php index eab036ea3..cd5162c50 100644 --- a/~dev_rating/application/classes/Controller/Handler/Map.php +++ b/~dev_rating/application/classes/Controller/Handler/Map.php @@ -341,15 +341,10 @@ class Controller_Handler_Map extends Controller_Handler { $data['success'] = false; $this->post -> rule('ModuleID', 'not_empty') -> rule('ModuleID', 'digit') - -> rule('SubmodulesID', 'not_empty') -> rule('CurrentModuleOrder', 'not_empty') -> rule('CurrentModuleOrder', 'digit'); if($this->post->check()) { $ChangeOrderModulesID = json_decode($this->post->offsetGet('ChangeOrderModulesID')); - $Submodules = json_decode($this->post->offsetGet('SubmodulesID')); - foreach ($Submodules as &$SubmoduleID) { - $this->privateDeleteSubmodule($SubmoduleID); - } $result = $this->model->deleteModule( $this->user['TeacherID'], $this->post->offsetGet('ModuleID') -- GitLab