Skip to content

Commit f6a9607

Browse files
committed
Some schema items return objectclass as a required attribute, as such resetting the value to blank during the creation
1 parent c7f4c50 commit f6a9607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/EntryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function add(EntryAddRequest $request): \Illuminate\View\View
7171
$o->objectclass = Arr::undot($x);
7272

7373
// Also add in our required attributes
74-
foreach ($o->getAvailableAttributes()->filter(fn($item)=>$item->is_must) as $ao)
74+
foreach ($o->getAvailableAttributes()->filter(fn($item)=>$item->is_must && ($item->name_lc !== 'objectclass')) as $ao)
7575
$o->{$ao->name} = [Entry::TAG_NOTAG=>['']];
7676
}
7777
}

0 commit comments

Comments
 (0)