N°5305 - CSV import ergonomy PR (#332)

Reworked UI feedbacks on following attributes:
- enum
- date
- external key
This commit is contained in:
odain-cbd
2022-09-20 16:00:33 +02:00
committed by GitHub
parent 2a064fd97d
commit 766c9f0e7e
26 changed files with 1187 additions and 347 deletions

View File

@@ -70,6 +70,7 @@ define('TAG_ATTCODE', 'domains');
class ItopDataTestCase extends ItopTestCase
{
private $iTestOrgId;
// For cleanup
private $aCreatedObjects = array();
@@ -448,7 +449,7 @@ class ItopDataTestCase extends ItopTestCase
$oUserProfile->Set('reason', 'UNIT Tests');
/** @var DBObjectSet $oSet */
$oSet = $oUser->Get('profile_list');
$oSet->AddObject($oUserProfile);
$oSet->AddItem($oUserProfile);
$oUser = $this->updateObject('UserLocal', $oUser->GetKey(), array(
'profile_list' => $oSet,
));
@@ -835,7 +836,7 @@ class ItopDataTestCase extends ItopTestCase
}
/**
* Import a consistent set of iTop objects from the specified XML text string
* Import a consistent set of iTop objects from the specified XML text string
* @param string $sXmlDataset
* @param boolean $bSearch If true, a search will be performed on each object (based on its reconciliation keys)
* before trying to import it (existing objects will be updated)