mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 00:41:34 +02:00
Fix for null design column
This commit is contained in:
parent
e73e9e2caa
commit
76a27f3946
@ -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