id summary reporter owner description type status priority milestone component version severity resolution keywords cc browser external_id os state 92 Bug fix suggestion: Selection widget fail with DateTime poulet1212 madair "By Querying features on the map which contain DateTime Attribute, Fusion generate a callback error: Reason: MapGuide/php/Query.php uses MapGuide\php\Utilities.php to retrieve via GetPropertyValueFromFeatReader, properties values. Look at (about) line 881 MapGuide\php\Utilities.php: {{{ $value = GetPropertyValueFromFeatReader($featureReader, $properties->$layerName->propertytypes[$j], $propname); $value = htmlentities($value,ENT_COMPAT,'UTF-8'); }}} this will only work if $value is a string. But GetPropertyValueFromFeatReader() returns a DateTime Object, that's why Fusion causes this callback error. Proposition is: Getting a string representation of this DateTime Object: {{{ $value = GetPropertyValueFromFeatReader($featureReader, $properties->$layerName->propertytypes[$j], $propname); if($value instanceof MgDateTime) $value = printDateTime($value); $value = htmlentities($value,ENT_COMPAT,'UTF-8'); }}} where: printDateTime($value) is: {{{ function printDateTime($mgDateTime) { $dayToday = $mgDateTime->GetDay(); $month = $mgDateTime->GetMonth(); $year = $mgDateTime->GetYear(); return $dayToday.""."".$month.""."".$year; } }}} it goes nice then, Rémy" defect closed P2 1.1 Core 1.0.6 Critical fixed selection datetime All All Analysing