meveo-org / meveo

meveo core
GNU Affero General Public License v3.0
10 stars 15 forks source link

Adding CFT to existing module from another module #709

Open tonysviews opened 1 year ago

tonysviews commented 1 year ago

Describe the bug When CFTs are added to an existing CET from a different module, it should allow those CFTs to be successfully added and also those new CFTs should be accessible to scripts during module installation.

To Reproduce Steps to reproduce the behavior:

  1. Install a module containing a CET.
  2. Install another module that adds new CFTs to the CET.
  3. The new module also needs to have a script that refers to the new CFTs on the CET
  4. The installation of the CFTs succeed but the script fails to access those new CFTs

Screenshots The mv-liquichain module contains a Transaction CET with the following CFTs:

image

The mv-mollie-payment module contains new CFTs that will be added to the Transaction CET:

image

Installation of the CETs succeed:

image

But the scripts in mv-mollie-payment are unable to access those new fields:

image

The same happens even when using a module script:

image

Installation succeeds:

image

But the same result as above, where the scripts are unable to access those new fields