Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-23

Reload properties only after adding a new property

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0
    • 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 );

            Unassigned Unassigned
            hugo Hugo Palacin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: