Support

  1. ggaillet
  2. Support
  3. Wednesday, July 19 2017, 07:20 AM
  4.  Subscribe via email
Each of my users have a set of custom fields they can modify in the front end and a set of custom fields they can visualize but cannot modify (only SU from backend).
Those customs fields (checkboxes) are set to Readonly (since I don't want anyone to modify them from frontend).
Problem is , when my users are editing their profile and saving it, it resets all those non editable custom checkboxes. They are not checked anymore.
I tried Readonly and Readonly (only in edit profile) (I don't know the difference) and it still behave the same way. These fields reset again and again every time the profile is modified in the frontend!
Please help.
References
  1. http://www.blacksharkden.com
ggaillet Accepted Answer
Pro
In addition, the reset problem appears to affect only Readonly checkbox lists. Readonly Selectlists are not modified when the profile is saved from the frontend.
  1. more than a month ago
  2. Support
  3. # 1
admin Accepted Answer
Admin
Hi,
thanks to report this, we will investigate and return with a solution. I'm sorry but this is a complex problem, so solution can take few hours :(
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
try to add following code after line 89 in file /administrator/components/com_jsn/helpers/fields/checkboxlist.php


if( $field->params->get( 'field_readonly' , '' ) == "1" && JFactory::getApplication()->isSite() && isset( $storeData[$alias] ) ) { unset($storeData[$alias]) ; }
if( $field->params->get( 'field_readonly' , '' ) == "2" && JFactory::getApplication()->input->get->get( 'task' , '' ) == 'profile.save' && JFactory::getApplication()->isSite() && isset( $storeData[$alias] ) ) { unset($storeData[$alias]) ; }
  1. more than a month ago
  2. Support
  3. # 3
ggaillet Accepted Answer
Pro
Working great! Thanks. Is it a bug and as such, will it be corrected in the next version or should I preciously keep my custom version of checkboxlist.php for later updates?
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
Hi,
this fix will be included in next release ;)
  1. more than a month ago
  2. Support
  3. # 5
onderzoekspraktijk Accepted Answer
Pro
The bug described above has returned, althoiugh the fix is now part of the normal code.

I want users when they register to give consent to using the personal data they send for the goals stated in th eprivacy policy (GDPR compliance).
I want them to see this in the edit profile form later, but I do not want them to be able to change it.
When set Readonly (only in edit profile) they get empty whenever the profile is edited. And because they are required this produces an error.

Is this bug recurring because joomla changed its code perhaps??

Thank you.

Regards,
Paul
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
Hi Paul,
I have just tried with J3.8.8 and latest Easy Profile and works. Can you please post me your site details to check this? if yes then you can use the form below the reply in "Site details" tab.
  1. more than a month ago
  2. Support
  3. # 7
onderzoekspraktijk Accepted Answer
Pro
Okay.

I checked the settings that for me do not work:
- checkbox field;
- available on profile page: yes or no
- available on edit profile form: yes
- available on registration for: yes
- available for: public;
- visible for: public.

When the profile form is edited, the required checkbox setting for consent 'leaks to empty' and produces the error-message: Invalid fiels: Consent.
Meanwhile in user.com the consent field stays tickt on!

Perhaps you need to take a look for yourself: see enclosed login data.

Best Regards,Paul
  1. more than a month ago
  2. Support
  3. # 8
admin Accepted Answer
Admin
Hi Paul,
unfortunately login informations does not works :(
  1. more than a month ago
  2. Support
  3. # 9
onderzoekspraktijk Accepted Answer
Pro
Very sorry.

I checked and doublechecked now to be sure.

Please try again.

Regards,
Paul
  1. more than a month ago
  2. Support
  3. # 10
admin Accepted Answer
Admin
When the profile form is edited, the required checkbox setting for consent 'leaks to empty' and produces the error-message: Invalid fiels: Consent.
This is a normal behavior, because Consent field is required, so it need to be filled.

Keep in mind that "Readonly (frontend)" works only in frontend so it will be editable in backend but alway required.

If you want to add admin to edit this field then you can set it as required only in frontend, see screenshot
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 11
onderzoekspraktijk Accepted Answer
Pro
Hi,

Thank you for responding to my question. But I think now the problem I put to you is not the problem you solved.
I am sorry that I did not describe the problem clear enough: in Dutch I am more proficient, English is not my first language so I will try to state more exactly what the problem is.

1. My problem is not with the backend fields, but with the front end views: I only now realise that the title of this thread suggest this, but this is not the issue for me;
2. This consent field is a required field and when registering its check-box has to be ticket;
3. After registration it will be view only in the edit registration form;
4. The problem was and is, that the value (1) of the check-box field for consent gets changed when another check-box field is changed in the edit registration form;
5. It looks like an acl problem that triggered it, is something like: hey that user has no rights to edit the content of the consent field so let's empty this field in this form when another field is changed;
6. When the form is saved, the save triggers an error message indicating the consent field value is empty, and that this field requires content, so please enter a value for the field;
7. Trying to enter a value will not work, because the field is set to viewing only;
8. Trying to save the form will not be possible now, when you click the submit button however the content of text fields will be updated, and also the value of the consent field will be set to empty.
9. After logging out, and logging in again, the edit profile form will be like before: the content field is view only and is ticked (value=1), the other fields have lost their changes from the session before.
10. Editing the form in the frontend is not possible any more.

There is a work around for this: set the field to required and available only for guest access.
The field will be invisible ever after registration, and does not interfere in the way described above.

(I am told that an earlier version of Joomla 3.8.6 or so had this same kind of problem but there it is solved now. perhaps this change in Joomla triggers this problem, that before did not exist to my knowledge. ??)

I hope this description helps clearing up what the issue is.

Best Regards,
Paul
  1. more than a month ago
  2. Support
  3. # 12
admin Accepted Answer
Admin
Hi Paul,
very thanks for this explanation, now it very clear.

After some testing we are able to replicate this problem on our server. We will prepare a fix as soon as possible,
we still ask you a little patience :D
  1. more than a month ago
  2. Support
  3. # 13
onderzoekspraktijk Accepted Answer
Pro
Hi,

Thanks, patience is easy now I know the issue will be solved. :p
  1. more than a month ago
  2. Support
  3. # 14
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Easy ProfileĀ® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.