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 5eae51c commit 7c3f451Copy full SHA for 7c3f451
inc/targetbase.class.php
@@ -976,10 +976,13 @@ function change_tag_type() {
976
'SELECT' => ['name'],
977
'FROM' => PluginTagTag::getTable(),
978
'WHERE' => [
979
- 'OR' => [
980
- ['type_menu' => ['LIKE', $this->getTargetItemtypeName()]],
981
- ['type_menu' => ['LIKE', '0']],
982
- ] + getEntitiesRestrictCriteria(PluginTagTag::getTable())
+ 'AND' => [
+ 'OR' => [
+ ['type_menu' => ['LIKE', '%"' . $this->getTargetItemtypeName() . '"%']],
+ ['type_menu' => ['LIKE', '%"0"%']]
983
+ ],
984
+ getEntitiesRestrictCriteria(PluginTagTag::getTable()),
985
+ ]
986
]
987
]);
988
$values = [];
0 commit comments