mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Extend rule set for import.
This commit is contained in:
@@ -444,6 +444,12 @@ class CategoryRepository implements CategoryRepositoryInterface
|
||||
*/
|
||||
public function store(array $data): Category
|
||||
{
|
||||
// TODO use validation, not this.
|
||||
if (strlen($data['name']) > 200 || strlen($data['name']) === 0) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
$newCategory = Category::firstOrCreateEncrypted(
|
||||
[
|
||||
'user_id' => $data['user'],
|
||||
|
Reference in New Issue
Block a user