mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
ImageAttribute: only in XML version 1.3
SVN:trunk[4131]
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2">
|
||||
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3">
|
||||
<classes>
|
||||
<class id="Organization" _delta="define">
|
||||
<parent>cmdbAbstractObject</parent>
|
||||
|
||||
@@ -520,6 +520,15 @@ class iTopDesignFormat
|
||||
$this->DeleteNode($oNode);
|
||||
}
|
||||
|
||||
// Remove Image attributes
|
||||
//
|
||||
$oNodeList = $oXPath->query("/itop_design/classes//class/fields/field[@xsi:type='AttributeImage']");
|
||||
foreach ($oNodeList as $oNode)
|
||||
{
|
||||
$this->LogWarning('The attribute '.self::GetItopNodePath($oNode).' is irrelevant and must be removed.');
|
||||
$this->DeleteNode($oNode);
|
||||
}
|
||||
|
||||
// Discard _delta="if_exists"
|
||||
//
|
||||
$oNodeList = $oXPath->query("//*[@_delta='if_exists']");
|
||||
|
||||
Reference in New Issue
Block a user