Skip to content

Commit

Permalink
Fix tag integration (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored Jul 1, 2020
1 parent faa3f1f commit 8f8ed93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,11 @@ public function parseObjectProperties(
$itemtype = $json->itemtype;
}

// In some case, there is no itemtype (PluginFormcreatorTagField)
if (empty($itemtype)) {
return $content;
}

$item = new $itemtype;
$item->getFromDB($answer);

Expand Down
2 changes: 2 additions & 0 deletions inc/fields/tagfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public function displayField($canEdit = true) {
['type_menu' => ['LIKE', '%\"Ticket\"%']],
['type_menu' => ['LIKE', '%\"Change\"%']],
['type_menu' => ['LIKE', '0']],
['type_menu' => ''],
['type_menu' => 'NULL'],
]
] + getEntitiesRestrictCriteria(PluginTagTag::getTable(), '', '', true),
'ORDER' => 'name'
Expand Down

0 comments on commit 8f8ed93

Please sign in to comment.