Problem/Motivation

After enabling this module, when I do this from the README:

Browse to Administration -> Groups -> Group types -> Set available content.

I see:

Notice: Undefined index: notify_mode in Drupal\group_notify\Plugin\NotifyGroupNode->isEnforced() (line 184 of /.../group_notify/src/Plugin/NotifyGroupNode.php

Proposed resolution

Debug and remove the warning.

Remaining tasks

  1. Debug this.
  2. Fix it.
  3. Perhaps add tests?
  4. Reviews.
  5. RTBC.
  6. Commit.

User interface changes

Remove PHP warning when trying to configure.

API changes

Data model changes

Release notes snippet

Comments

dww created an issue. See original summary.

gregcube’s picture

Oops. I see what I've done. I have inadvertently overrode the isEnforced() function of a parent class. I'll patch that up soon.

Thanks for pointing this out.

  • gregcube committed f3134f4 on 8.x-1.x
    Issue #3147182: Fixes undefined index warning, and other improvements
    
gregcube’s picture

Status: Active » Fixed
dww’s picture

Fantastic! Thanks for the quick fix. Confirming that commit f3134f48 did the trick.

Cheers,
-Derek

gregcube’s picture

Status: Fixed » Closed (fixed)