Make a todo a todid, closes #774
This commit is contained in:
parent
9ee503b3c1
commit
a710bdf457
4 changed files with 8 additions and 4 deletions
|
@ -18,6 +18,10 @@ class DatabaseHostFormRequest extends AdminFormRequest
|
|||
*/
|
||||
public function rules()
|
||||
{
|
||||
if (! $this->has('node_id')) {
|
||||
$this->merge(['node_id' => null]);
|
||||
}
|
||||
|
||||
if ($this->method() !== 'POST') {
|
||||
return DatabaseHost::getUpdateRulesForId($this->route()->parameter('host')->id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue