mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
#1016: record the displayed value of the database_table_name field in the database.
This happens: - when creating a new Synchro Data Source - when modifying an "old" Synchro Data Source for which the field was empty. SVN:trunk[3439]
This commit is contained in:
@@ -640,6 +640,14 @@ EOF
|
||||
$this->Set('attribute_list', $oAttributeSet);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$sDataTable = $this->Get('database_table_name');
|
||||
if (empty($sDataTable))
|
||||
{
|
||||
$this->Set('database_table_name', $this->ComputeDataTableName());
|
||||
}
|
||||
}
|
||||
}
|
||||
public function DoCheckToWrite()
|
||||
{
|
||||
@@ -761,6 +769,14 @@ EOF
|
||||
{
|
||||
CMDBSource::Query($sTriggerSQL);
|
||||
}
|
||||
|
||||
$sDataTable = $this->Get('database_table_name');
|
||||
if (empty($sDataTable))
|
||||
{
|
||||
$this->Set('database_table_name', $this->ComputeDataTableName());
|
||||
$this->DBUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user