From f171a7017769fde3c092a895c086b02fce2172a0 Mon Sep 17 00:00:00 2001 From: Lucas D'Avila Date: Wed, 27 Feb 2013 16:25:39 -0300 Subject: [PATCH] Alterado API DynamicInput/CompononenteCurricular para não requerer escola_id, uma vez que este é obtivo via sql, pelo código da turma recebido. --- ieducar/modules/DynamicInput/Views/ComponenteCurricularController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ieducar/modules/DynamicInput/Views/ComponenteCurricularController.php b/ieducar/modules/DynamicInput/Views/ComponenteCurricularController.php index 6a45b3b..08b9eee 100644 --- a/ieducar/modules/DynamicInput/Views/ComponenteCurricularController.php +++ b/ieducar/modules/DynamicInput/Views/ComponenteCurricularController.php @@ -50,8 +50,7 @@ class ComponenteCurricularController extends ApiCoreController { protected function canGetComponentesCurriculares() { - return $this->validatesId('escola') && - $this->validatesId('turma') && + return $this->validatesId('turma') && $this->validatesPresenceOf('ano'); } -- libgit2 0.21.2