Skip to content

Commit

Permalink
Dev: save template configuration update
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 17, 2017
1 parent c1d8224 commit b0e83f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/controllers/admin/templateoptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ public function update($id)
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);

if(isset($_POST['TemplateOptions']))
{
$model->attributes=$_POST['TemplateOptions'];
if(isset($_POST['TemplateConfiguration'])){
$model->attributes=$_POST['TemplateConfiguration'];
if($model->save())
$this->getController()->redirect(array('admin/templateoptions/sa/update/id/'.$model->id));
}
Expand Down

0 comments on commit b0e83f6

Please sign in to comment.