Undefined index: #type in _required_by_role_set_property()

Created on 5 May 2015, almost 10 years ago
Updated 7 February 2025, about 2 months ago

Installing latest 1.x-dev (March 25) I've got this error

(Notice: Undefined index: #type in _required_by_role_set_property() (line 99 of /sites/all/modules/required_by_role/required_by_role.module).

I give a look at code and I think modifying the line #99

if ($element['#type'] == 'select') {

into

    if (isset($element['#type']) && $element['#type'] == 'select') {

solve the issue

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇪Ireland rollingnet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium dieterholvoet Brussels

    The Drupal 7 release of this module and Drupal 7 itself are unsupported. Feel free to reopen this issue if it is still relevant on the latest release of the module.

Production build 0.71.5 2024