etendosoftware / etendo_core

Etendo Classic source code
10 stars 11 forks source link

EPL-1472: The Organization selector in the 'Enterprise Module Management' window allows selecting inactive organizations. #388

Closed brunoromerosmf closed 4 months ago

brunoromerosmf commented 4 months ago

Error's description

When using the Enterprise Module Management window to apply datasets, the typical case is selecting an organization where it will be applied. When searching through the list of Orgs, it shows not only the active ones, but also the inactive ones. If someone, by any chance, accidentally applies a dataset in an inactive Organization, the following error will be thrown: image These Object ... is new but not writable errors are referencing the system trying to insert elements to an inactive organization, thus it being not writable

Steps to reproduce the error

  1. Login as admin
  2. Go to Organization window
  3. Select the F&B España - Región Sur unmark its Active check
  4. Save
  5. Go to Enterprise Module Management window
  6. In the Organization Selector, pick the F&B España - Región Sur organization and wait a moment for the available datasets to load
  7. Select any dataset and apply it to the Organization
  8. The process will fail, showing an error as the above explained

    Required Configurations (if necessary)

    Have any module/modules that introduce datasets installed in the environment

    Expected behavior

    The F&B España - Región Sur Organization should not even be able to be selected after deactivating it.

    Affected Version

    ¿Latest/Specific? Latest Version number: 24.1.4

    Solution Design (optional)

    Other test cases

    Given: When: Then: