Skip to content

Commit

Permalink
Fixed display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 26, 2013
1 parent e13578d commit 45c04b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/ModelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function postCreate()
$model->name = e(Input::get('name'));
$model->modelno = e(Input::get('modelno'));
$model->depreciation_id = e(Input::get('depreciation_id'));
$model->category_id = e(Input::get('category_id'));
$model->user_id = Sentry::getId();


Expand Down Expand Up @@ -134,6 +135,7 @@ public function postEdit($modelId = null)
$model->name = e(Input::get('name'));
$model->modelno = e(Input::get('modelno'));
$model->depreciation_id = e(Input::get('depreciation_id'));
$model->category_id = e(Input::get('category_id'));


// Was it created?
Expand Down
1 change: 1 addition & 0 deletions app/models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Model extends Elegant {
// Declare the rules for the form validation
protected $rules = array(
'name' => 'required|min:3',
'category_id' => 'required',
);

public function assets()
Expand Down

0 comments on commit 45c04b1

Please sign in to comment.