Closed (fixed)
Project:
cck_map
Version:
5.x-3.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2008 at 10:40 UTC
Updated:
3 Feb 2009 at 15:49 UTC
Jump to comment: Most recent file
trying to edit a preexisting marker, you can submit the changes, and they appear normally. The problem appears when you try to change the description or the tittle. If you submit a new one everyting seems ok, you can see the modified text.
But if you try to edit again, you´ll see that the text saved was THE FIRST ONE, not the previous...
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | cck_map.js_.txt | 16.74 KB | alexmoreno |
| #5 | cck_map.module_.txt | 25.27 KB | alexmoreno |
Comments
Comment #1
alexmoreno commentedwas my own modification, sorry
Comment #2
alexmoreno commentedno, yet present. Sorry for all the changes but i was testing it was not my fault modding the module.
Comment #3
alexmoreno commentedok, i´ve finally found the problem. With internet explorer 6.0 the module is expecting a lot of problems, and with firefox, sometimes seems that the cache likes to play with our nervous :-S.
Comment #4
alexmoreno commentedreally crazy. It definitively doesn´t saves the updates, as i described this morning. If you try to edit the map and change, for example, a title, it shows the previous version, not the one which is showing on view tab. Crazy?
Comment #5
alexmoreno commentedok, i promise that i´ve finally find the bug :-D
in cck_map.js we have this on lines :
marker.image = image;
marker.title = title;
marker.description = title;
this.attachMarkerListeners(marker);
the problem is in
marker.description = title;
that must be
marker.description = description;
i was confused because i was cleaning the source with very similar title and descriptions :-S.
I´ve attached my code which also allows to select different image icons. To do this simply modify the line 574:
$icon_files = array("marker.png" => "marcador rojo","dd-start.png" => "inicio","dd-end.png" => "fin","house.png" => "house","hotel.png" => "hotel", "picnic.png" => "picnic", "airport.png" => "airport", "entertain.png" => "diversion", "building.png" => "edificio");
with your own uploaded icons on cck_map/icons directory
Regards
Comment #6
alexmoreno commentedComment #7
beeradb commentedThanks for all your work on getting to the bottom of that. I'll try to create a patch of your work and sync it with the production release as soon as I can.
You mentioned in an earlier post being interested in helping some with the development of the module. I'm definitely looking for any help I can get with module upkeep and feature expansion. There are a lot of things i'd lke to do with this module, and just don't have much time to devote to it currently.
Thanks,
Brad
Comment #8
alexmoreno commentedim very interested in this module for various projects and, in fact, i´ve made some improvements during the last days and i´d like to contribute them to the community. I also have a lot of work but in part of my work we use drupal so we´d like to share the things which we´ve done to the community.
wating for instructions ;-).
Comment #9
selflearner commentedJust a quick question to urwen, do you know if your cck_map.js patch works in enabling the marker description to show. I tried it and it did not in my site, so just wondering. Marker description is something I want to have, and for some reason, it is not showing up at all as brought up in the above discussion, even after I tried to change the line 'marker.description=description. If you have any suggestions, please share them.
Thanks.
Comment #10
alexmoreno commentedit´s really crazy. After expending lot of time i finally decided to use nodemap and location in other webs. Sorry.
Comment #11
dariogcode commentedFirst, my apologize for my english.
I found the error.
In line 63 of cck_map.module
In $form['widget']['description']['#value'] it should be $form['widget']['description']['#default_value'].
It is working for me.