33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-11-01 03:02:39 +00:00

Removed Joomla 4 warning

Fixed branch filter
Set Yes as first option in filters

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2021-10-30 21:12:04 +02:00
parent 39c5db61bd
commit 4ea1532319
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E
3 changed files with 7 additions and 10 deletions

View File

@ -247,7 +247,7 @@ class PullsModel extends ListModel
if (!empty($branch))
{
$query->where(
$db->quoteName('pulls.branch') . ' = ' . $db->quote($branch)
$db->quoteName('pulls.branch') . ' IN (' . implode(',', $db->quote($branch)) . ')'
);
}

View File

@ -9,7 +9,6 @@
namespace PatchTester\View\Pulls;
use Exception;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Pagination\Pagination;
@ -127,11 +126,6 @@ class PullsHtmlView extends DefaultHtmlView
Text::script('COM_PATCHTESTER_CONFIRM_RESET');
if (version_compare(JVERSION, '4.0', 'ge'))
{
Factory::getApplication()->enqueueMessage(Text::_('COM_PATCHTESTER_40_WARNING'), 'warning');
}
return parent::render();
}

View File

@ -14,10 +14,11 @@
type="list"
default=""
validate="options"
onchange="this.form.submit();"
>
<option value="">COM_PATCHTESTER_FILTER_APPLIED_PATCHES</option>
<option value="0">JNO</option>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
@ -26,10 +27,11 @@
type="list"
default=""
validate="options"
onchange="this.form.submit();"
>
<option value="">COM_PATCHTESTER_FILTER_RTC_PATCHES</option>
<option value="0">JNO</option>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
@ -37,10 +39,11 @@
type="list"
default=""
validate="options"
onchange="this.form.submit();"
>
<option value="">COM_PATCHTESTER_FILTER_NPM_PATCHES</option>
<option value="0">JNO</option>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field