Fixed some collusion issue in the dynamic get build process when custom query is used. Fixed the issue found in the import of JCB packages that caused custom code to be imported in duplication, also added the option to turn off (unpublish) custom code no longer in use.
This commit is contained in:
@ -594,39 +594,12 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
// set the number of rows
|
||||
$this->rowNumber = count($rows);
|
||||
// return the table
|
||||
return $this->setSubformTable($head, $rows, $idName);
|
||||
return ComponentbuilderHelper::setSubformTable($head, $rows, $idName);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function setSubformTable($head, $rows, $idName)
|
||||
{
|
||||
$table[] = "<div class=\"row-fluid\" id=\"vdm_table_display_".$idName."\">";
|
||||
$table[] = "\t<div class=\"subform-repeatable-wrapper subform-table-layout subform-table-sublayout-section-byfieldsets\">";
|
||||
$table[] = "\t\t<div class=\"subform-repeatable\">";
|
||||
$table[] = "\t\t\t<table class=\"adminlist table table-striped table-bordered\">";
|
||||
$table[] = "\t\t\t\t<thead>";
|
||||
$table[] = "\t\t\t\t\t<tr>";
|
||||
$table[] = "\t\t\t\t\t\t<th>" . implode("</th><th>", $head) . "</th>";
|
||||
$table[] = "\t\t\t\t\t</tr>";
|
||||
$table[] = "\t\t\t\t</thead>";
|
||||
$table[] = "\t\t\t\t<tbody>";
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
$table[] = "\t\t\t\t\t<tr class=\"subform-repeatable-group\">";
|
||||
$table[] = "\t\t\t\t\t\t" . $row;
|
||||
$table[] = "\t\t\t\t\t</tr>";
|
||||
}
|
||||
$table[] = "\t\t\t\t</tbody>";
|
||||
$table[] = "\t\t\t</table>";
|
||||
$table[] = "\t\t</div>";
|
||||
$table[] = "\t</div>";
|
||||
$table[] = "</div>";
|
||||
// return the table
|
||||
return implode("\n", $table);
|
||||
}
|
||||
|
||||
protected function setSubformValue($header, $value)
|
||||
{
|
||||
if (array_key_exists($header, $this->functionArray) && method_exists($this, $this->functionArray[$header]))
|
||||
|
Reference in New Issue
Block a user