mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #4523 from turbo124/v5-develop
Fix for editing invoice where number in pending state
This commit is contained in:
commit
90d7d425d6
@ -49,7 +49,7 @@ class UpdateInvoiceRequest extends Request
|
||||
|
||||
$rules['id'] = new LockedInvoiceRule($this->invoice);
|
||||
|
||||
if ($this->input('number')) {
|
||||
if ($this->input('number') && strlen($this->input('number')) >= 1) {
|
||||
$rules['number'] = 'unique:invoices,number,'.$this->id.',id,company_id,'.$this->invoice->company_id;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user