Skip to content

Commit

Permalink
Fix issue : personnal tag are enabled in tag herited
Browse files Browse the repository at this point in the history
  • Loading branch information
Toufik Mechouet committed May 29, 2015
1 parent d19977c commit 0927adc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public static function getHeritedTags($resourceName, $resourceId)
if ($resourceName == 'host') {
$templates = HostRepository::getTemplateChain($resourceId, array(), -1);
foreach ($templates as $template) {
$aTagsInHost = TagsRepository::getList('host', $template['id'], 2, 0);
$aTagsInHost = TagsRepository::getList('host', $template['id'], 1, 0);
foreach ($aTagsInHost as $oTags) {
if (!in_array($oTags['id'], $aTagUsed)) {
$aTagUsed[] = $oTags['id'];
Expand All @@ -710,7 +710,7 @@ public static function getHeritedTags($resourceName, $resourceId)

$templates = ServiceRepository::getListTemplates($resourceId, array(), -1);
foreach ($templates as $template) {
$aTagsInSvc = TagsRepository::getList('service', $template, 2, 0);
$aTagsInSvc = TagsRepository::getList('service', $template, 1, 0);
foreach ($aTagsInSvc as $oTags) {
if (!in_array($oTags['id'], $aTagUsed)) {
$aTagUsed[] = $oTags['id'];
Expand Down

0 comments on commit 0927adc

Please sign in to comment.