Release of v5.1.1-beta6
Fix bug in the filter of Languages by linked entities. #1230.
This commit is contained in:
@@ -29,6 +29,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Minify;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Helper\Fields;
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
|
||||
/**
|
||||
@@ -17415,7 +17416,7 @@ class Interpretation extends Fields
|
||||
. " * Method to validate the form data.";
|
||||
$fix .= PHP_EOL . Indent::_(1) . " *";
|
||||
$fix .= PHP_EOL . Indent::_(1)
|
||||
. " * @param JForm \$form The form to validate against.";
|
||||
. " * @param Form \$form The form to validate against.";
|
||||
$fix .= PHP_EOL . Indent::_(1)
|
||||
. " * @param array \$data The data to validate.";
|
||||
$fix .= PHP_EOL . Indent::_(1)
|
||||
|
@@ -25,6 +25,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Builder\Tags;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Interfaces\HeaderInterface;
|
||||
use Joomla\CMS\Form\FormHelper;
|
||||
|
||||
|
||||
/**
|
||||
@@ -422,7 +423,7 @@ final class Header implements HeaderInterface
|
||||
case 'form.custom.field':
|
||||
$headers[] = 'use Joomla\CMS\HTML\HTMLHelper as Html;';
|
||||
$headers[] = "jimport('joomla.form.helper');";
|
||||
$headers[] = "\JFormHelper::loadFieldClass('###JFORM_extends###');";
|
||||
$headers[] = "FormHelper::loadFieldClass('###JFORM_extends###');";
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@@ -78,7 +78,7 @@ You write clean, readable logic — and JCB ensures compatibility under the hood
|
||||
MD;
|
||||
|
||||
// What can be found here
|
||||
$readme[] = '### What's in This Repository?';
|
||||
$readme[] = '### What\'s in This Repository?';
|
||||
$readme[] = <<<MD
|
||||
This repository contains a **index of Joomla Powers** to be used in a JCB instance.
|
||||
|
||||
|
@@ -241,7 +241,7 @@ class Table extends BaseTable implements TableInterface
|
||||
'type' => 'TINYINT(1)',
|
||||
'default' => '1',
|
||||
'GUID' => '2089f202-667a-4fbd-881c-cc0fe1343ce4',
|
||||
'null_switch' => 'NOT NULL',
|
||||
'null_switch' => 'NULL',
|
||||
'unique_key' => false,
|
||||
'key' => true,
|
||||
],
|
||||
@@ -10863,7 +10863,7 @@ class Table extends BaseTable implements TableInterface
|
||||
'store' => 'json',
|
||||
'tab_name' => 'Details',
|
||||
'db' => [
|
||||
'type' => 'TEXT',
|
||||
'type' => 'MEDIUMTEXT',
|
||||
'default' => 'EMPTY',
|
||||
'GUID' => '36edbdce-b9b7-4b89-b2d9-03f91bb56019',
|
||||
'null_switch' => 'NULL',
|
||||
|
@@ -42,7 +42,7 @@ final class Delete extends Database implements DeleteInterface
|
||||
}
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// start the conditions bucket
|
||||
$_conditions = [];
|
||||
|
@@ -219,7 +219,7 @@ final class Insert extends Versioning implements InsertInterface
|
||||
$this->historyGuid = [];
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
$table = $this->getTable($table);
|
||||
|
||||
// set the query targets
|
||||
@@ -242,7 +242,7 @@ final class Insert extends Versioning implements InsertInterface
|
||||
$limit = 300;
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// set the query targets
|
||||
$query->insert($this->db->quoteName($table))->columns($this->db->quoteName(array_keys($columns)));
|
||||
@@ -334,7 +334,7 @@ final class Insert extends Versioning implements InsertInterface
|
||||
{
|
||||
try
|
||||
{
|
||||
$query = $this->db->getQuery(true)
|
||||
$query = $this->db->createQuery()
|
||||
->select($this->db->quoteName('id'))
|
||||
->from($this->db->quoteName($table))
|
||||
->where(
|
||||
|
@@ -330,7 +330,7 @@ final class Load extends Database implements LoadInterface
|
||||
protected function query(array $select, array $tables, ?array $where = null,
|
||||
?array $order = null, ?int $limit = null): ?object
|
||||
{
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
$this->applySelect($query, $select);
|
||||
$this->applyFromAndJoins($query, $tables);
|
||||
|
@@ -167,7 +167,7 @@ final class Update extends Versioning implements UpdateInterface
|
||||
$table = $this->getTable($table);
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// set the query targets
|
||||
$query->update($this->db->quoteName($table));
|
||||
@@ -270,7 +270,7 @@ final class Update extends Versioning implements UpdateInterface
|
||||
}
|
||||
|
||||
// Get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// Prepare the update statement
|
||||
$query->update($this->db->quoteName($this->getTable($table)))
|
||||
@@ -317,7 +317,7 @@ final class Update extends Versioning implements UpdateInterface
|
||||
|
||||
try
|
||||
{
|
||||
$query = $this->db->getQuery(true)
|
||||
$query = $this->db->createQuery()
|
||||
->select($this->db->quoteName('id'))
|
||||
->from($this->db->quoteName($table))
|
||||
->where($this->db->quoteName('guid') . ' = ' . $this->quote($guid));
|
||||
|
@@ -87,12 +87,12 @@ abstract class StringHelper
|
||||
{
|
||||
// Safely escape output for HTML
|
||||
$title = self::shorten($string, 400 , false);
|
||||
$escapedTitle = htmlspecialchars($title, ENT_QUOTES, 'UTF-8');
|
||||
$escapedShort = htmlspecialchars($shortened, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
return '<span class="hasTip" title="' . $escapedTitle . '" style="cursor:help">'
|
||||
. $escapedShort
|
||||
. '</span>';
|
||||
return sprintf(
|
||||
'<span class="hasTip" title="%s" style="cursor:help">%s</span>',
|
||||
htmlspecialchars($title, ENT_QUOTES, 'UTF-8'),
|
||||
htmlspecialchars($shortened, ENT_QUOTES, 'UTF-8')
|
||||
);
|
||||
}
|
||||
|
||||
// Return shortened version without tooltip
|
||||
|
Reference in New Issue
Block a user