mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:04:30 -04:00
Removed validation pre-processing code
This commit is contained in:
parent
c08d0bb98a
commit
6733c0ca2f
@ -26,21 +26,4 @@ class CreateClientRequest extends Request
|
|||||||
'contacts' => 'valid_contacts',
|
'contacts' => 'valid_contacts',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validator($factory)
|
|
||||||
{
|
|
||||||
// support submiting the form with a single contact record
|
|
||||||
$input = $this->input();
|
|
||||||
if (isset($input['contact'])) {
|
|
||||||
$input['contacts'] = [$input['contact']];
|
|
||||||
unset($input['contact']);
|
|
||||||
$this->replace($input);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $factory->make(
|
|
||||||
$this->input(),
|
|
||||||
$this->container->call([$this, 'rules']),
|
|
||||||
$this->messages()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -26,21 +26,4 @@ class CreateVendorRequest extends Request
|
|||||||
'name' => 'required',
|
'name' => 'required',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
public function validator($factory)
|
|
||||||
{
|
|
||||||
// support submiting the form with a single contact record
|
|
||||||
$input = $this->input();
|
|
||||||
if (isset($input['vendor_contact'])) {
|
|
||||||
$input['vendor_contacts'] = [$input['vendor_contact']];
|
|
||||||
unset($input['vendor_contact']);
|
|
||||||
$this->replace($input);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $factory->make(
|
|
||||||
$this->input(), $this->container->call([$this, 'rules']), $this->messages()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user