Hi Guys
I think I may have found a bug when merging Multilocations, I just wonder if you can confirm it and if there is a fix. I am running GeoDirectory with Custom Post Types and Location Manager.
I have a number of CPT’s set up where they do not have the location function. For example ‘Movie’. If I go into the backend using phpMyAdmin I can see the record as displayed in the file ‘Before Location Merge’ As you can see there are no location details.
I also have a number of CPT’s that do have locations, and sometimes, depending on what language they are posted in the same location can have a different name, for example Schiedam, South Holland, Netherlands (which is my Default City) and Schiedam, Zuid-Holland, Netherlands.
I went into GeoDirectory > Multilocation > Manage Locations > and selected the two addresses above and merged them. Everything went well until I look at the records for the CPT’s that do not have location.
After the merge ALL of the non-location CPT’s now have the Default Location in them as you can see in the ‘After Location Merge’ file. These would be ‘post_locations’ , ‘post_city’ , ‘post_region’ and ‘post_country’.
Why does the Location Merge adjust fields in the Database for CPT’s that do not need Locations? This has caused me a bit of a problem as I wrote a piece of code which switches depending on if the ‘post_city’ has a value in it. If there is a quick solution to this it would be very much appreciated.
Best Regards
Neil