Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-4354

Unable to edit VFC property after checkout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • London Release
    • None
    • None

      To reproduce:

      • Select a VFC from the catalog
      • Go to the properties view
      • Checkout the VFC
      • Select a property
      • Make any update to the property
      • Click the Save button - nothing is sent to the backend, nothing happens at all except the modal is exited

      If the VFC is checked out before going to the properties view then there is no issue

      If you navigate from the properties view and back then the issue is resolved

      During the checkout the readonly field on the property seems to change from undefined to true and hence the following check in property-form-view-model.ts exits the modal without saving the changes:

                  if ((this.$scope.editPropertyModel.property.readonly && !this.$scope.isPropertyValueOwner)
                       || (!this.$scope.forms.editForm.$dirty && angular.equals(JSON.stringify(this.$scope.myValue), this.$scope.editPropertyModel.property.value))) {
                       this.$uibModalInstance.close();
                       return;
                   }

            JvD_Ericsson JEFF VAN DAM
            JvD_Ericsson JEFF VAN DAM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: