Hallo all
i’ve got a question or maybe an error, that’s why i want to ask you first before i add a bug to the bugtracker. Its about the the getDocumentObject Function in document.parser.class.inc.php. I searched the community and google but found nothing so if there was allready some discussion about this please let me know.
This function should also returning the template vars for the Document which you’ve stated in $identifier parameter, but as far as i(or we) see and tested it, and it always returns the the template vars from the document which $modx->documentIdentifier returns:
$sql .= "LEFT JOIN " . $this->getFullTableName("site_tmplvar_contentvalues")." tvc ON tvc.tmplvarid=tv.id AND tvc.contentid = '" . $this->documentIdentifier . "' ";
instead of:
$sql .= "LEFT JOIN " . $this->getFullTableName("site_tmplvar_contentvalues")." tvc ON tvc.tmplvarid=tv.id AND tvc.contentid = '" . $identifier . "' ";
it’s on line 950 in manager/includes/document.parser.class.inc.php on modx 0.9.6.3
thanks for advice
jonas