From 4bdb503973a4f828eb6a83c8e0096b03082b9dd7 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Thu, 10 Mar 2016 23:52:04 +0200 Subject: [PATCH] Fixed a bug that limited the dynamic get from loading the correct field relations. --- admin/models/ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 236ecec02..45cde807a 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -698,7 +698,7 @@ class ComponentbuilderModelAjax extends JModelList $query->select($db->quoteName(array('a.name','a.xml'))); $query->select($db->quoteName(array('c.name'),array('type_name'))); $query->from('#__componentbuilder_field AS a'); - $query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $db->quoteName('a.type') . ' = ' . $db->quoteName('c.id') . ')'); + $query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('c.id') . ')'); $query->where($db->quoteName('a.id') . ' = '. $db->quote($id)); // Reset the query using our newly populated query object. @@ -752,7 +752,7 @@ class ComponentbuilderModelAjax extends JModelList $columns = $db->getTableColumns("#__".$tableName); if (ComponentbuilderHelper::checkArray($columns)) { - // build the return string + // build the return string $tableColumns = array(); foreach ($columns as $column => $type) {