mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #5094 from turbo124/v5-develop
Fix for null design column
This commit is contained in:
commit
dfb8500a58
@ -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…
Reference in New Issue
Block a user