I'm creating a number of custom node types using CCK. I've just installed this module and created a new type, and added a CCK map. All works fine except that when I now edit any of the custom content types, the help text for any field is replaced with:
"Click the map to place markers. Once placed, you can drag markers around to change their location, you may also click to edit or remove them."
If I manually set the text back, and save the field, it still displays the above text. It is as though CCK map is forcing this text into any custom content field help text.
This is well beyond my abilities to fix, so for the time being I've had to remove this (otherwise excellent) module until it can be fixed.
Comments
Comment #1
bgadz commentedI am experiencing the situation.
Comment #2
elgreg commentedWell, I think I solved this bug on my own - it just requires adding brackets for an if statement in cck_map.module.
Instructions:
1. open up cck_map.module in your favorite text editor
2. look for the line
function cck_map_form_alter($form_id, &$form) {- it should be line #673. go to the second if statement in the function - should be line 71
if ($form['field_type']['#value'] == 'map_location')4. add a bracket at the end of the line to make it
if ($form['field_type']['#value'] == 'map_location') {5. add another bracket at the end of the function or, if you want to make the code pretty, add a new line at #75, put the bracket there, indent everything between 71 and 75 and call it a day.
Comment #3
Toddv commentedThanks for the fix
Comment #4
matw8 commentedI've just found the same problem and resolved it the same way before finding this thread.
Any idea when this will be rolled into the module code?
Comment #5
beeradb commentedA new release is available, and this issue should be resolved. I am closing this issue, but feel free to reopen it if for some reason you continue to experience this issue.
Thanks for the patience in waiting for this latest release, things have moved rather slow with the holidays and all.
Thanks,
Brad
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
bigbman commentedI'm still having problems. I uploaded the fix, and was still getting that text on custom fields. I tried removing the module alltogether, and I'm still seeing that text in the content form. Is there something I can change in the database, or some way to re-build the content type without losing my content?
Comment #8
bigbman commentedhello? Is the form being cached somehow?
Comment #9
bigbman commentedscratch that - I found that the configuration for each field had the cck_map help text. I removed that, and with the new code all seems to be ok. Thanks!
Comment #10
OliverColeman commentedThis still seems to be an issue, though perhaps due to different reasons. When the field editing form is loaded the help text/description is always set to the default. At line 65:
$form['widget']['description']['#value'] is always null and so strlen always returns 0 so the if statement is always executed. I don't know off the top of my head why this value is always null, seems odd.
In any case, I don't think it's standard behaviour to set this field to a default value when it's empty as it precludes not having help text. I suppose the thing to do would be to have a reset button to set it to the default help text.
I ended up commenting out the offending three lines so I could set the help text/description.
Comment #11
gatman commentedSame issue - Map Title and Map Description not showing - tried commenting out per above - no change.