Browse Source

PUSH rapido

parent
commit
00e8240450
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/controllers/CriteriaController.php
  2. 1
    1
      app/controllers/TemplatesController.php

+ 1
- 1
app/controllers/CriteriaController.php View File

@@ -764,7 +764,7 @@ class CriteriaController extends \BaseController
764 764
             $objectives = DB::table('objectives')
765 765
                 ->join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
766 766
                 ->join('programs', 'programs.id', '=', 'objective_program.program_id')
767
-                ->where('program.school_id', Auth::user()->school_id)
767
+                ->where('programs.school_id', Auth::user()->school_id)
768 768
                 ->where('objectives.active', 1)
769 769
                 ->orderBy('objectives.text', 'asc')
770 770
                 ->select('objectives.id', 'objectives.text')

+ 1
- 1
app/controllers/TemplatesController.php View File

@@ -165,7 +165,7 @@ class TemplatesController extends \BaseController
165 165
 				$query = DB::table('titles')
166 166
 					->where('text', $text)->first();
167 167
 				if ($query) {
168
-					$result = DB::insert("insert into `template_title` (`template_id`, `title_id` `position`) values ({$templateId}, {$query->id}, {$index})");
168
+					$result = DB::insert("insert into `template_title` (`template_id`, `title_id`, `position`) values ({$templateId}, {$query->id}, {$index})");
169 169
 					if (!$result) {
170 170
 						Session::flash('status', 'danger');
171 171
 						Session::flash('message', 'Rubric could not be created.');