- Issue created by @dev2.addweb
- 🇮🇳India sarwan_verma
Hi,
I have resolved the 'Call to undefined method' issue, created a patch, and attached it.
Please review and verify.
Thanks
When navigating to the Notification List page provided by a custom inotify module an error is raised. This prevents users from viewing the notification list.
1. Enable the module.
2. Navigate notification/add and add notification
2. Navigate to the URL /notification/list
3. The following error is displayed in Recent log messages.
Error: Call to undefined method Drupal\user\Entity\User::getUserName() in Drupal\inotify\InotifyNotificationListBuilder->buildRow() (line 35 of /app/web/modules/custom/inotify/src/InotifyNotificationListBuilder.php).
Active
2.0
Code
Hi,
I have resolved the 'Call to undefined method' issue, created a patch, and attached it.
Please review and verify.
Thanks