Merge pull request #12474 from snipe/fixes/destroy_method_for_fieldsets

Fixed mismatched field/fieldset
This commit is contained in:
snipe 2023-02-07 13:33:38 -08:00 committed by GitHub
commit 4b2d35e05d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ class CustomFieldsetsController extends Controller
*/
public function destroy($id)
{
$fieldset = CustomField::find($id);
$fieldset = CustomFieldset::find($id);
$this->authorize('delete', $fieldset);