oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Oro Reminder Expiration Bug #981

Open farzamsabeti opened 4 years ago

farzamsabeti commented 4 years ago

Hi oro team,

I noticed that the Reminder (oro_reminder) records does not expire on requested state. After some debugging, I found out by adding bellow lines to Oro/Bundle/ReminderBundle/Entity/Repository/ReminderRepository::findRequestedReminders, this bug would be fixed.

    public function findRequestedReminders(User $user)
    {
           ...
            ->andWhere('reminder.expireAt > :nowDate')
            ->setParameter('nowDate', UtilityService::getNowDate())
           ...
    }

Please have a look.

Thanks, Farzam