Needs review
Project:
Registration Role With Approval
Version:
8.x-1.0-rc1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2016 at 09:40 UTC
Updated:
2 Jan 2018 at 12:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Priyanka.addweb commentedIt works fine and approval saved from my end.
Please flushed cache and reinstall module properly.
Comment #3
psiegel commentedHello,
I had tried this a few times without success. I have re-installed Drupal from scratch and tried again, same issue.
When I look and try to export (view) the configuration at /admin/config/development/configuration/single/export, the oly think I have is the brackets: { }
Is there anything I can look at to try to figure out what is happening?
Best,
Pascal
Comment #4
Ingulit commentedConfirming that none of this module's settings get saved when the save button is pressed. Presently unusable on Drupal 8.
Comment #5
mylies commentedComment #6
mylies commentedchanged saving configs on form submit and it works
hope its helps
Comment #7
chuta commented@myLies....i Tried to apply this patch without success!
Here is the response i got;
startupbits@rs11 [~/public_html/modules/registration_role_with_approval]# patch < registration_role_with_approval-default-form-value-miss-2839851-6.patch
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/Form/RegistrationRoleWithApprovalSettingsForm.php b/src/Form/RegistrationRoleWithApprovalSettingsForm.php
|index dffcb54..5a3a172 100644
|--- a/src/Form/RegistrationRoleWithApprovalSettingsForm.php
|+++ b/src/Form/RegistrationRoleWithApprovalSettingsForm.php
--------------------------
File to patch: registration_role_with_approval.module
patching file registration_role_with_approval.module
Hunk #1 FAILED at 96.
1 out of 1 hunk FAILED -- saving rejects to file registration_role_with_approval.module.rej
Can you assist?
Comment #8
Moneda commentedI applied the patch #6 but is not working, the settings value are not saved.
Comment #9
emartos commentedI have tested the patch and it applies correctly using Composer. With this patch, I am able to save the settings form and see the selected profiles on the registration form.
Kind regards,
Eduardo Martos.
Comment #10
matsbla commentedI tested your patch Eduardo, looks like working good, thanks - I now get the role options on registration form.
However, it is missing a label, like "Select your roles".
I also tested with enabling the option "needs admin approval" for each role, but I was still able to register with those roles without any admin approval at all.
Comment #11
emartos commentedYou are right. I focused on the saving problem, but there is also some work needed on code style. I think these details should go into different issues.
Regarding this:
when I create new users selecting a role that needs approval, they remain blocked until the admin approves their accounts. The problem I've found is that the message these users receive is the same than roles without the approval required.
Kind regards,
Eduardo Martos.