Merge pull request #5094 from turbo124/v5-develop
Fix for null design column
This commit is contained in:
commit
dfb8500a58
2 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ class StoreDesignRequest extends Request
|
|||
$input['design']['footer'] = '';
|
||||
}
|
||||
|
||||
if (! array_key_exists('header', $input['design']) || is_null($input['design']['header'])) {
|
||||
$input['design']['header'] = '';
|
||||
}
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,6 +53,10 @@ class UpdateDesignRequest extends Request
|
|||
$input['design']['footer'] = '';
|
||||
}
|
||||
|
||||
if (! array_key_exists('header', $input['design']) || is_null($input['design']['header'])) {
|
||||
$input['design']['header'] = '';
|
||||
}
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue