Fix subrange update

This commit is contained in:
Jérémy Munsch 2022-01-04 10:38:37 +01:00
parent 545e0cfe04
commit edcc5ea62e
No known key found for this signature in database
GPG key ID: 55196BEE445F6049

View file

@ -14,7 +14,7 @@ class UpdateSubRange extends StoreSubRange
return \array_merge(parent::rules(), [
'slug' => [
'required',
'unique:sub_ranges,slug,' . $this->id
'unique:sub_ranges,slug,' . $this->subrange->id
]
]);
}