We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bafb673 commit d1419dcCopy full SHA for d1419dc
administrator/components/com_patchtester/src/Model/PullsModel.php
@@ -256,11 +256,10 @@ protected function getListQuery()
256
$query->where($db->quoteName('pulls.is_rtc') . ' = ' . $value);
257
}
258
259
- $npm = $this->getState()->get('filter.npm');
260
- if (!empty($npm)) {
261
- // Not applied patches have a NULL value, so build our value part of the query based on this
262
- $value = $npm === 'no' ? '0' : '1';
263
- $query->where($db->quoteName('pulls.is_npm') . ' = ' . $value);
+ $npm = $this->getState()->get('filter.npm', '');
+
+ if (strlen($npm) === 1) {
+ $query->where($db->quoteName('pulls.is_npm') . ' = ' . (int) $npm);
264
265
266
$draft = $this->getState()->get('filter.draft');
0 commit comments