Revision e878cf6c
[#1618] Evite avertissement si absence de template
Lorsqu'on supprime un équipement depuis la liste, l'attribut
"vigilo_template" n'est pas défini.
Refs: #1618
Change-Id: Ifc026012a68ed1e641225791043da860310550c6
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2521
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Yves OUATTARA <yves.ouattara@c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
src/plugins/vigilo/inc/abstractmonitoreditem.class.php | ||
---|---|---|
48 | 48 |
|
49 | 49 |
protected function selectTemplates() |
50 | 50 |
{ |
51 |
$template = $this->item->fields['vigilo_template']; |
|
51 |
$template = isset($this->item->fields['vigilo_template']) ? |
|
52 |
$this->item->fields['vigilo_template'] : null; |
|
52 | 53 |
if (null !== $template) { |
53 | 54 |
$this->children[] = new VigiloTemplate($template); |
54 | 55 |
} |
Also available in: Unified diff