Closed (fixed)
Project:
Membership Entity
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2015 at 19:38 UTC
Updated:
8 May 2018 at 17:39 UTC
Jump to comment: Most recent
Comments
Comment #2
nerdoc commentedThe problem is that MembershipEntityTokenMemberId.class.php contains
'#min_tokens' => 1,in line 91 for $form['pattern'] in the settingsForm.If I replace the 1 with 0; everything works.
I know there has to be another validation, but this can't be done with the build_in token_element_validate() callback. It needs to check: If token_count = 0, see if the autoincrement counter is activated. If so, everything's fine.
The #min_tokens does not help neither, because you can take a token like the current domain etc. which does not change. This is not unique then without the counter, but passes the validation check.
Comment #3
nerdoc commentedA workaround: if you add the [membership_entity:member-id] token (which seems to be unassigned at the moment of creation), it is left out and the config can be saved.
This is just a workaround tough.
Comment #5
draenen commentedComment #6
lisa.rae commentedHas this been merged into the 7.x-1.x branch?
Comment #7
draenen commentedYes, this is on 7.x-1.x