1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fix for null design column

This commit is contained in:
David Bomba 2021-03-10 20:41:18 +11:00
parent e73e9e2caa
commit 76a27f3946
2 changed files with 8 additions and 0 deletions

View File

@ -54,6 +54,10 @@ class StoreDesignRequest extends Request
$input['design']['footer'] = ''; $input['design']['footer'] = '';
} }
if (! array_key_exists('header', $input['design']) || is_null($input['design']['header'])) {
$input['design']['header'] = '';
}
$this->replace($input); $this->replace($input);
} }
} }

View File

@ -53,6 +53,10 @@ class UpdateDesignRequest extends Request
$input['design']['footer'] = ''; $input['design']['footer'] = '';
} }
if (! array_key_exists('header', $input['design']) || is_null($input['design']['header'])) {
$input['design']['header'] = '';
}
$this->replace($input); $this->replace($input);
} }
} }