Skip to content

Commit 28ed241

Browse files
authored
Fix regression when indexRelations is false
This was a fix from an earlier version of Scout that looks like it didn't make it into version 5 mike-moreau@5705d4c
1 parent b147566 commit 28ed241

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Scout.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ function(ElementEvent $event) {
202202
function(ElementEvent $event) {
203203
if (!Scout::$plugin->getSettings()->indexRelations) {
204204
$this->beforeDeleteRelated = new Collection();
205-
206-
return;
207205
}
208206

209207
/** @var SearchableBehavior $element */

0 commit comments

Comments
 (0)