mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
# Conflicts: # composer.json # core/cmdbchangeop.class.inc.php # core/cmdbobject.class.inc.php # css/light-grey.scss # setup/setuputils.class.inc.php # test/ItopTestCase.php # test/core/ConfigTest.php # test/core/LogAPITest.php # test/core/UserRightsTest.php # test/core/dictApcuTest.php # test/core/dictTest.php # test/core/iTopConfigParserTest.php # test/core/ormLinkSetTest.php # test/phpunit.xml.dist # test/postbuild_integration.xml.dist # test/setup/SetupUtilsTest.php # test/status/StatusIncTest.php # webservices/cron.php
This commit is contained in:
@@ -1118,7 +1118,16 @@ EOF
|
||||
$aUpdatedDecoded = array();
|
||||
foreach ($aUpdatedProperties as $sProp) {
|
||||
$sDecodedProp = str_replace('attr_', '', $sProp); // Remove the attr_ prefix
|
||||
$aCurrentValues[$sDecodedProp] = (isset($aPreviousValues[$sProp]) ? $aPreviousValues[$sProp] : ''); // Set the previous value
|
||||
// Set the previous value
|
||||
if ( isset($aPreviousValues[$sProp]) && $aPreviousValues[$sProp] != '' ){
|
||||
$aCurrentValues[$sDecodedProp] = $aPreviousValues[$sProp];
|
||||
} else {
|
||||
if(gettype($aCurrentValues[$sDecodedProp]) == "array") {
|
||||
$aCurrentValues[$sDecodedProp] = [];
|
||||
} else {
|
||||
$aCurrentValues[$sDecodedProp] = '';
|
||||
}
|
||||
}
|
||||
$aUpdatedDecoded[] = $sDecodedProp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user