#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:
Denis Flaven
2014-12-01 17:33:38 +00:00
parent c4b039c9c6
commit d714235d67

View File

@@ -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();
}
}
/**