mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #6281 from turbo124/v5-develop
Fixes for checking constraints
This commit is contained in:
commit
e1e1787d08
@ -561,6 +561,7 @@ class Import implements ShouldQueue
|
||||
$model_query = (new $model())
|
||||
->query()
|
||||
->where($column, $value)
|
||||
->where('company_id', $this->company->id)
|
||||
->exists();
|
||||
|
||||
if($model_query)
|
||||
|
@ -63,7 +63,8 @@ class ClientRepository extends BaseRepository
|
||||
}
|
||||
|
||||
$client->fill($data);
|
||||
|
||||
$client->save();
|
||||
|
||||
if (!isset($client->number) || empty($client->number)) {
|
||||
$client->number = $this->getNextClientNumber($client);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user