Skip to content

Commit

Permalink
Merge pull request #5 from FutsalShuffle/patch-1
Browse files Browse the repository at this point in the history
Update SelectField.php
  • Loading branch information
zedsh authored Feb 2, 2023
2 parents 2b685f2 + 8a4b0a9 commit 8a7178d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fields/SelectField.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ public function isSelected($id)
} else {
$value = $this->getValue();
if ($value instanceof Model) {
return ($value->{$this->getRelatedKey()} === $id);
return ($value->{$this->getRelatedKey()} == $id);
} else {
return ($value === $id);
return ($value == $id);
}
}
}
Expand Down

0 comments on commit 8a7178d

Please sign in to comment.