We're using the profile module on our site, and have set up several different fields including freeform lists and multiple line text fields. Each of these has an explanation associated with it from settings > profiles. However, when a user edits their profile, only the single-line text field and drop down list explanations show up - the other fields have no explanation next to them at all.
Looking in the code for profile.module this seems to be the function to display it: '#description' => _profile_form_explanation($field), and that looks identical for all field types.
We're using 4.7.2 with a modified Channel Nine theme if that helps - happy to create an account for anyone who wants to check the issue out first hand.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | quicktags_2.patch | 438 bytes | jax |
| #6 | quicktags.patch | 743 bytes | jax |
| #1 | explanation.png | 33.67 KB | jax |
Comments
Comment #1
jax commentedI have just done a test and it shows the explanation for all the fields. In the attached screenshot you can see the explanation for a multiline textfield. The code also looks ok. Could you please make sure that you actually typed something in the explanation field when creating the profile?
Comment #2
catchhi I'm definitely typing something in yes, and if I go back to edit the field in settings >> profile it's still there. Just made a new field to test again and had the same issue
Comment #3
jax commentedDo you have a site where I can witness this? The only other thing I can think of is to make sure you have the latest version of everything and even if you think you have to reinstall 4.7.3. (btw, is it still there after upgrading to 4.7.3)?
Comment #4
catchI've just upgraded to 4.7.3 - no change with this. I've sent you a message via the contact form with the address of the site and a login you can use.
PS. I'm away for a week from tomorrow but hopefully another site admin will keep up with this issue if it's ongoing.
Thanks.
catch
Comment #5
jax commentedIt is clear now. You use the quicktags module and this modules removes the explanation from a profile textarea field. This is a bug in the quicktags module. Disable the quicktags module and see the explanation reappear.
I'll see if I can find a quick fix.
Comment #6
jax commentedThe theme_quicktags_textfield function mangles the element but forgets the '#description' for profile fields. Patch fixes this.
Comment #7
jax commentedThis patch is better. It copies the return from the form.inc file. This way the div and class are not hardcoded.
Comment #8
catchThanks! This worked fine, everything now showing up as it should be. Sorry it took a while to get back properly.
catch.
Comment #9
Bèr Kessels commentedCommitted a modified version to HEAD. Thanks for the effort.
(hint: quicktags HEAD runs on 4.7, if you badly need this fix. But you'll get other features too, then)
Comment #10
Bèr Kessels commentedComment #11
(not verified) commented