-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
The function "_setProp" is called when adding a property, and when changing its value.
This function contains a call to "_requestData" :
// reload node properties
org.ametys.repository.PhysicalViewTab._requestData(Ext.getCmp('tree-jcr').getSelectionModel(), node);
This call has to be made only when adding a new property, not when changing a value.
Correction :
Remove this call from _setProp and put it in _okCreatePropBox() after calling _setProp :
//create new property
org.ametys.repository.PhysicalViewTab._setProp(name, value, type);
// reload node properties
var node = Ext.getCmp('tree-jcr').getSelectionModel().getSelectedNode();
org.ametys.repository.PhysicalViewTab._requestData(Ext.getCmp('tree-jcr').getSelectionModel(), node );