Problem/Motivation

FYI, I just tested patch #39 in this core issue (#2849620: Allow blocked users to be filtered from UserSelection for users with 'administer users' permission) and suggested to include it in core (with minor modifications), but I later noticed that it broke this module in case a user would use the new (if accepted) core option to disable blocked users selections, and a user with the permission added by this module was about to edit the form.

You might want to adjust this module behaviour or the suggested patch to cover the core's feature request, to make the two work together 😇

Thank you

Comments

kopeboy created an issue. See original summary.

kopeboy’s picture

When visiting the entity form with the user reference field, with the new core option that excludes blocked users, I got these:

2 Warnings:

Undefined array key "dependent_fields_view" in dependent_fields_field_widget_single_element_form_alter() (line 58 of /var/www/html/web/modules/contrib/dependent_fields/dependent_fields.module)

Message Warning: Trying to access array offset on null in Drupal\dependent_fields\Plugin\EntityReferenceSelection\ViewsSelection->getReferenceableEntities() (line 523 of /var/www/html/web/modules/contrib/dependent_fields/src/Plugin/EntityReferenceSelection/ViewsSelection.php)

1 Fatal error:

TypeError: Symfony\Component\HttpFoundation\Request::get(): Argument #1 ($key) must be of type string, null given, called in /var/www/html/web/modules/contrib/dependent_fields/src/Plugin/EntityReferenceSelection/ViewsSelection.php on line 647 in Symfony\Component\HttpFoundation\Request->get() (line 700 of /var/www/html/vendor/symfony/http-foundation/Request.php).

flashwebcenter’s picture

Title: Incompatibility with proposed core patch to allow excluding blocked users » Make this module compatible if this feature is implemented in core
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Blocked User

Hello,

I understand that work is underway on this feature in Drupal core, and I’ve mentioned that on the homepage for this module. However, I’m still uncertain if the patch will address the Authored By field, which was the primary motivation for creating this module. In any case, I’ll wait until this feature is fully integrated into Drupal core.

I'm not a big fan of patching core; if the choice is between patching core and installing a contrib module, I always opt for the contrib.

Thank you!
Alaa

flashwebcenter’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.