Skip to content

Commit

Permalink
fix(tags): bad tag filter when selecting tags for target ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Aug 22, 2019
1 parent 5eae51c commit 7c3f451
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,13 @@ function change_tag_type() {
'SELECT' => ['name'],
'FROM' => PluginTagTag::getTable(),
'WHERE' => [
'OR' => [
['type_menu' => ['LIKE', $this->getTargetItemtypeName()]],
['type_menu' => ['LIKE', '0']],
] + getEntitiesRestrictCriteria(PluginTagTag::getTable())
'AND' => [
'OR' => [
['type_menu' => ['LIKE', '%"' . $this->getTargetItemtypeName() . '"%']],
['type_menu' => ['LIKE', '%"0"%']]
],
getEntitiesRestrictCriteria(PluginTagTag::getTable()),
]
]
]);
$values = [];
Expand Down

0 comments on commit 7c3f451

Please sign in to comment.