Problem/Motivation

I noticed that I cannot unset "Group creator must complete their membership" option in /admin/group/types/manage/{group-type}

animation of failing to unset value

Proposed resolution

It looks like the GroupType config entity had the property defined in such a way that is is ALWAYS set to TRUE. It simply won't be possible to unset the value!

From 8.x-dev:

  /**
   * The group creator must immediately complete their membership.
   *
   * @var bool
   */
  protected $creator_wizard = TRUE;

Same applies to the $creator_membership property.

I believe we should not set a value here.

Remaining tasks

  • patch
  • review

User interface changes

none

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rachel_norfolk created an issue. See original summary.

rachel_norfolk’s picture

Issue summary: View changes
FileSize
607 bytes

A little patch...

rachel_norfolk’s picture

Status: Active » Needs review

remembering to set the issue status AFTER submitting a patch for the millionth time! :oops:

maaty388’s picture

Status: Needs review » Reviewed & tested by the community

Yeah it works

kristiaanvandeneynde’s picture

Status: Reviewed & tested by the community » Needs work

Hmm, the properties this patch changes have values because those should act as default values. GroupTypeForm should allow you to unset them, which it does on my machine and on simplytest.me.

So what do you have on your machine that a clean install doesn't? :)

rachel_norfolk’s picture

hmm - I've gone back and taken another look - now can't quite see what this was causing me a problem - it work perfectly well without it.

I'm really sorry - it must have been a caching thing this side or something??

I think we can close this as "Closed (Rachel being daft again)"

rachel_norfolk’s picture

Status: Needs work » Closed (cannot reproduce)
kristiaanvandeneynde’s picture

No worries, I'm just happy something essential wasn't horribly broken :D