Ensure our validation message is shown when not selecting an objectclass when creating a new entry

This commit is contained in:
Deon George 2025-04-06 23:29:00 +10:00
parent 3196b10aed
commit 29c460fd4b

View File

@ -10,8 +10,6 @@
@endsection @endsection
@section('main-content') @section('main-content')
<x-error/>
<div class="row"> <div class="row">
<div class="offset-1 col-10"> <div class="offset-1 col-10">
<div class="main-card mb-3 card"> <div class="main-card mb-3 card">
@ -34,6 +32,7 @@
<x-form.select <x-form.select
id="objectclass" id="objectclass"
name="objectclass[{{ Entry::TAG_NOTAG }}][]" name="objectclass[{{ Entry::TAG_NOTAG }}][]"
old="objectclass.{{ Entry::TAG_NOTAG }}"
:label="__('Select a Structural ObjectClass...')" :label="__('Select a Structural ObjectClass...')"
:options="($oc=$server->schema('objectclasses')) :options="($oc=$server->schema('objectclasses'))
->filter(fn($item)=>$item->isStructural()) ->filter(fn($item)=>$item->isStructural())