diff --git a/core/bulkchange.class.inc.php b/core/bulkchange.class.inc.php index 23159a259..af1564bd8 100644 --- a/core/bulkchange.class.inc.php +++ b/core/bulkchange.class.inc.php @@ -553,6 +553,7 @@ class BulkChange $aResult[$iRow]["finalclass"] = get_class($oTargetObj); $aResult[$iRow]["id"] = new CellStatus_Void(0); } + return $oTargetObj; } protected function UpdateObject(&$aResult, $iRow, $oTargetObj, $aRowData, CMDBChange $oChange = null) @@ -724,8 +725,9 @@ class BulkChange switch($oReconciliationSet->Count()) { case 0: - $this->CreateObject($aResult, $iRow, $aRowData, $oChange); + $oTargetObj = $this->CreateObject($aResult, $iRow, $aRowData, $oChange); // $aResult[$iRow]["__STATUS__"]=> set in CreateObject + $aVisited[] = $oTargetObj->GetKey(); break; case 1: $oTargetObj = $oReconciliationSet->Fetch(); diff --git a/css/light-grey.css b/css/light-grey.css index 7dde5723d..df86f5135 100644 --- a/css/light-grey.css +++ b/css/light-grey.css @@ -899,4 +899,13 @@ a.truncated { span.form_validation { width:24px; text-align:center; -} \ No newline at end of file +} +.notification { + border: 1px solid #c33; + background-color: #fee; + padding: 0.5em; + margin: 0.5em; + text-align:center; + width: 95%; + -moz-border-radius: 0.5em; +} \ No newline at end of file diff --git a/pages/csvimport.php b/pages/csvimport.php index 404088b80..92a7409fd 100644 --- a/pages/csvimport.php +++ b/pages/csvimport.php @@ -213,6 +213,18 @@ try return array('separator' => $sSeparator, 'qualifier' => $sQualifier); } + /** + * Display a banner for the special "synchro" mode + * @param WebPage $oP The Page for the output + * @param string $sClass The class of objects to synchronize + * @param integer $iCount The number of objects to synchronize + * @return none + */ + function DisplaySynchroBanner(WebPage $oP, $sClass, $iCount) + { + $oP->add("