mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update validation rules for update task status
This commit is contained in:
parent
70e0a1db52
commit
9c21e096a1
@ -33,9 +33,10 @@ class UpdateTaskStatusRequest extends Request
|
|||||||
{
|
{
|
||||||
$rules = [];
|
$rules = [];
|
||||||
|
|
||||||
if ($this->input('name')) {
|
// 26/10/2021 we disable this as it prevent updating existing task status meta data where the same name already exists
|
||||||
$rules['name'] = Rule::unique('task_statuses')->where('company_id', auth()->user()->company()->id)->ignore($this->task_status->id);
|
// if ($this->input('name')) {
|
||||||
}
|
// $rules['name'] = Rule::unique('task_statuses')->where('company_id', auth()->user()->company()->id)->ignore($this->task_status->id);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user