Problem:
{jdfield_title ID} and {jdfield ID} always empty.
Tested on:
jDownloads Versions 3.9.8.7 and 4.0.24
See related report:
https://www.jdownloads.com/forum/index.php?topic=12898.0Observation:
jcfields array always empty.
Example:
// Insert the Joomla Fields data when used
if (isset($items[$i]->jcfields) && count((array)$items[$i]->jcfields)){
Workaround:
Patch function getItems() in /components/com_jdownloads/src/Model/DownloadModel.php (or downloads.php for 3.9)
// Get the tags
$item->tags = new TagsHelper;
$item->tags->getItemTags('com_jdownloads.download', $item->id);
// Populate jcfields
$item->jcfields = FieldsHelper::getFields('com_jdownloads.download', $item, true);
// Build the multilingual association hints
if ($item->params->get('show_associations')){
$item->associations = AssociationHelper::displayAssociations($item->id);
}
@Arno: Could it really be the case that this problem has been in the code for so long?
Or did I miss something?
Best regards
Michael