Skip to content

Commit

Permalink
#17 - Modificaçao do construtor de Task, para adiçao do nome da disci…
Browse files Browse the repository at this point in the history
…plina
  • Loading branch information
BrunoMessias committed Dec 13, 2016
1 parent f9c27c2 commit 7b6b2a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/SubjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public function createTask ($subject_id) {
$task->subject = $subject_id;
$task->due_date = Input::get('due_date');
$task->title = Input::get('title');
$task->subject_name = Subject::where('id',$subject_id)->first()->name;
$task->description = Input::get('description');

$subject = Subject::where('id',$subject_id)->first();
Expand Down

0 comments on commit 7b6b2a0

Please sign in to comment.