Release 2.0.2 (#3856)
* allow to overwrite global spreadsheet styles * bump version * fix deprecations in vcard download * bump composer packages * added help page for all registered locales * fix menu id's, cleanup times route, fix configurable homepage redirect * format duration without leading zero in hours (unify javascript with php behavior) * fix active records in all screen sizes * improved responsiveness in XS * fixed invoice number for customer null fields * fix javascript respects multiple recent-activity dropdowns * show recent activities on small screens * fix user-profile layout column in XS * fix search is always marked as active
This commit is contained in:
@@ -13,6 +13,7 @@ use App\Entity\Bookmark;
|
||||
use App\Entity\Team;
|
||||
use App\Entity\User;
|
||||
use App\Form\Model\DateRange;
|
||||
use App\Utils\EquatableInterface;
|
||||
use App\Utils\SearchTerm;
|
||||
use Symfony\Component\Form\FormError;
|
||||
use Symfony\Component\Form\FormErrorIterator;
|
||||
@@ -330,7 +331,13 @@ class BaseQuery
|
||||
$currentValue = $this->get($filter);
|
||||
|
||||
if (\is_object($currentValue)) {
|
||||
if ($currentValue !== $expectedValue) {
|
||||
if ($currentValue instanceof EquatableInterface) {
|
||||
return $currentValue->isEqualTo($expectedValue);
|
||||
}
|
||||
|
||||
// this is a loose comparison by choice, as == compares object type and content
|
||||
// instead of === which only compares if both sides are the same instance
|
||||
if ($currentValue != $expectedValue) { // @phpstan-ignore-line
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user