Closed pabloveintimilla closed 6 years ago
@shakaran i understand that the variable "max" is useful to set maximun number of notifications displayed in panel, is correct?. If this is correct y recommend set null that represent without limit
@pabloveintimilla after check the code, it seems that it is not really used in any place that set the maximum of notification.
I update other events using getMax() that probably have the same issue. https://github.com/avanzu/AdminThemeBundle/commit/f1395240a55b381fe7cad79ecaa09d4814694abf
And added some phpdoc: https://github.com/avanzu/AdminThemeBundle/commit/d273c8387a080a484e8d112df5cfd446ff475444
Thanks for your contribution!
This avoid this error: Type error: Too few arguments to function Avanzu\AdminThemeBundle\Event\NotificationListEvent::__construct(), 0 passed in /var/www/html/cti/vendor/avanzu/admin-theme-bundle/Controller/NavbarController.php on line 39 and exactly 1 expected