eZFind 2.3 + eZGmapLocation Datafield with empty values

eZFind 2.3 + eZGmapLocation Datafield with empty values

Tuesday 07 December 2010 8:44:49 am - 1 reply

Author Message

Edi Modrić

Wednesday 08 December 2010 2:20:09 am

It seems that the problem is in ezfSolrDocumentFieldGmapLocation::getData method.

Basicly, it doesn't check if the values are empty and does not assign a default value to the array returned to eZSolr class if they are. Instead, getData returns an array with empty values, which ezfind/solr obviously interprets as "no need to update the value".

This can be solved with the patch on the following link http://pastebin.com/YRvH7Gj9

Ofcourse, then you will need to change your template/php code to take into account attribute values with longitude and latitude set to 0 and interpret them as not having a location.

eZ Publish certified developer

http://ez.no/certification/verify/350658

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.