Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I noticed that I cannot unset "Group creator must complete their membership" option in /admin/group/types/manage/{group-type}
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
Comment | File | Size | Author |
---|---|---|---|
#2 | cannot_unset_group-2893774-2.patch | 607 bytes | rachel_norfolk |
Comments
Comment #2
rachel_norfolkA little patch...
Comment #3
rachel_norfolkremembering to set the issue status AFTER submitting a patch for the millionth time! :oops:
Comment #4
maaty388 CreditAttribution: maaty388 commentedYeah it works
Comment #5
kristiaanvandeneyndeHmm, 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? :)
Comment #6
rachel_norfolkhmm - 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)"
Comment #7
rachel_norfolkComment #8
kristiaanvandeneyndeNo worries, I'm just happy something essential wasn't horribly broken :D