Revision 925171f8
[#1637] Propagation du nom du template
Evite que le nom du template Vigilo associé à la machine ne soit perdu
lorsqu'on modifie un objet rattaché à la machine (IPAddress,
NetworkName, SoftwareInstallation, etc.).
Change-Id: I6e4b7df2d926547bf19afc8de6e2469caf54867c
Refs: #1637
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2576
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
src/plugins/vigilo/inc/abstractmonitoreditem.class.php | ||
---|---|---|
55 | 55 |
|
56 | 56 |
protected function selectTemplates() |
57 | 57 |
{ |
58 |
$template = isset($this->item->fields['vigilo_template']) ? |
|
59 |
$this->item->fields['vigilo_template'] : null; |
|
58 |
$template = PluginVigiloTemplate::getTemplateNameForItem($this->item); |
|
60 | 59 |
if (null !== $template) { |
61 | 60 |
$this->children[] = new VigiloTemplate($template); |
62 | 61 |
} |
Also available in: Unified diff