Fixed a bug that limited the dynamic get from loading the correct field relations.
This commit is contained in:
parent
4424179425
commit
4bdb503973
@ -698,7 +698,7 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
$query->select($db->quoteName(array('a.name','a.xml')));
|
$query->select($db->quoteName(array('a.name','a.xml')));
|
||||||
$query->select($db->quoteName(array('c.name'),array('type_name')));
|
$query->select($db->quoteName(array('c.name'),array('type_name')));
|
||||||
$query->from('#__componentbuilder_field AS a');
|
$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));
|
$query->where($db->quoteName('a.id') . ' = '. $db->quote($id));
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
// Reset the query using our newly populated query object.
|
||||||
@ -752,7 +752,7 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
$columns = $db->getTableColumns("#__".$tableName);
|
$columns = $db->getTableColumns("#__".$tableName);
|
||||||
if (ComponentbuilderHelper::checkArray($columns))
|
if (ComponentbuilderHelper::checkArray($columns))
|
||||||
{
|
{
|
||||||
// build the return string
|
// build the return string
|
||||||
$tableColumns = array();
|
$tableColumns = array();
|
||||||
foreach ($columns as $column => $type)
|
foreach ($columns as $column => $type)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user