1
0
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:
David Bomba 2021-03-10 20:41:38 +11:00 committed by GitHub
commit dfb8500a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}