Hello,
we have the following problem of which we are pretty sure, that it is caused by Mapstraction CCK.
We have a content type with basically the following CCK fields:
- Mapstraction CCK Map-field
- Date field (using Date module)
- Link field (using Link module).
The problem is:
If the Mapstraction CCK Map-field is located before the Date- and Link-field in the sequence of fields in the content type => the format of the Date- and Link-field during node-create is “destroyed” and the date- and link-data can not be entered correctly any more.
If the Mapstraction CCK-Map-field is located behind the Date- and Link-field in the sequence of fields in the node type => everything is okay and date and link can be entered correctly.
We are pretty sure, that this behaviour is caused by Mapstraction CCK.
Is there a solution for this ?
Regards,
Martin
Comments
Comment #1
KhaledBlah commentedHello,
I've investigated this error and found that its source is the mapstraction_cck_geocoder module and there it is the function "mapstraction_cck_geocoder_add_geocoder", which calls "drupal_get_form" (line 192 in 6.x-1.x-dev); drupal_get_form then calls "mapstraction_cck_geocoder_form_definition" and even if that function returns NULL the issue still remains. So without knowing more I must assume that this is cause for the error.
Regards,
Khaled
Comment #2
KhaledBlah commentedBtw, I have tried it with the user reference and the node reference fields as well and got an error there as well.
Comment #3
plopescHello,
I'll try to solve this bug as soon as possible.
This error breaks only the style of the other fields or it breaks their behavior too?
Thanks for your collaboration.
Regards,
plopesc
Comment #4
KhaledBlah commentedHi plopesc,
yes it breaks their behavior as well. The date module for instance does not show the current date (when its settings suggest it should) and the calendar does not show when one clicks into the field.
Regards,
Khaled
Comment #5
vlad.k commentedSubscribing
Comment #6
KhaledBlah commentedplopesc, I don't know whether that's interesting for you but I have noticed that the geocoder's behavior is as expected when you put it into a field by its own. If you put other field into this fieldgroup, their behavior will again break.
Comment #7
plopescSorry,
I'm very busy now, I'll try to solve this problem as soon as possible.
It works fine if the geocoding field is removed??
Thanks
Comment #8
KhaledBlah commentedYes it does work without the geocoder.
Comment #9
vlad.k commentedI found the cause of the error. I'm not sure if this is an error in Mapstraction CCK or Drupal core. For description of the error please see:
http://drupal.org/node/890068
Comment #10
KhaledBlah commentedI've started working on solving this problem by rewriting the mapstraction_cck_geocoder module. My aim is to create a standard CCK widget which will then be used by the mapstraction_cck module when the map is being created. I've done most of the CCK hook implementation, however my problem now is to figure out how to "manually load" a certain CCK widget.
Comment #11
plopescHello.
Thank you all for your collaboration with this bug.
After the marsyas comment I'm working in a workaround for the module that avoids the use of the drupal_get_form() method.
Weltumrundung and I are testing this workaround and I expect that the bug will be fixed soon.
Best Regards,
plopesc
Comment #12
KhaledBlah commentedHi plopesc,
could you elaborate a little more on how you're going to solve this problem? As I've said in #10 I am trying to do it via CCK hooks but maybe you have better idea?
Comment #13
plopeschi KhaledBlah,
The workaround that we are testing is based in the creation of the geocoding form through the drupal_render_form() method instead the drupal_get_form() method. So, the problem described in #9 is avoid and there are not nested forms. But, this workaround is being tested now, but I expect that will work fine.
I don't know exactly how your module works, if you need more specific info, ask me.
Best Regards
Comment #14
plopescThis bug has been fixed and commited in Mapstraction CCK beta3 version.
Thanks for your collaboration