Browse Source

#784 Data sync: display the attribute code (as well as its label in the user language)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2876 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 years ago
parent
commit
3c4bb1287f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      synchro/synchrodatasource.class.inc.php

+ 2 - 2
synchro/synchrodatasource.class.inc.php

@@ -177,7 +177,7 @@ class SynchroDataSource extends cmdbAbstractObject
 							// Read-only mode
 							$aRow['reconciliation'] = $oAttribute->Get('reconcile') == 1 ? Dict::S('Core:SynchroReconcile:Yes') :  Dict::S('Core:SynchroReconcile:No'); 
 							$aRow['update'] = $oAttribute->Get('update') == 1 ?  Dict::S('Core:SynchroUpdate:Yes') :  Dict::S('Core:SynchroUpdate:No');
-							$aRow['attcode'] = MetaModel::GetLabel($this->GetTargetClass(), $oAttribute->Get('attcode')); 
+							$aRow['attcode'] = MetaModel::GetLabel($this->GetTargetClass(), $oAttribute->Get('attcode')).' ('.$oAttribute->Get('attcode').')';
 							$aRow['update_policy'] = $oAttribute->GetAsHTML('update_policy');
 							if ($oAttDef->IsExternalKey())
 							{
@@ -196,7 +196,7 @@ class SynchroDataSource extends cmdbAbstractObject
 							$aRow['reconciliation'] = "<input type=\"checkbox\" name=\"reconciliation[$sAttCode]\" $sChecked/>"; 
 							$sChecked = $oAttribute->Get('update') == 1 ? 'checked' : '';
 							$aRow['update'] = "<input type=\"checkbox\" name=\"update[$sAttCode]\" $sChecked/>"; 
-							$aRow['attcode'] = MetaModel::GetLabel($this->GetTargetClass(), $oAttribute->Get('attcode'));
+							$aRow['attcode'] = MetaModel::GetLabel($this->GetTargetClass(), $oAttribute->Get('attcode')).' ('.$oAttribute->Get('attcode').')';
 							$oUpdateAttDef = MetaModel::GetAttributeDef(get_class($oAttribute), 'update_policy'); 
 							$aRow['update_policy'] = cmdbAbstractObject::GetFormElementForField($oPage, get_class($oAttribute), 'update_policy', $oUpdateAttDef, $oAttribute->Get('update_policy'), '', 'update_policy_'.$sAttCode, "[$sAttCode]");
 							if ($oAttDef->IsExternalKey())