Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
114 stars 70 forks source link

Only tryChange appMetadata if connected task from dataTypeChange is NOT customReceipt #12890

Closed standeren closed 4 months ago

standeren commented 4 months ago

Description

In order to be able to only modify the dataType in layout-sets and NOT applicationMetadata when changing dataType for CustomReceipt we need to check in the event handler for appmetadata that the task is NOT customReceipt before going on with the change. If connectedTask is CustomReceipt --> do nothing in this handler.

Related Issue(s)

Verification

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.04%. Comparing base (aca9dda) to head (5c4e1fc).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12890 +/- ## ======================================= Coverage 91.04% 91.04% ======================================= Files 1385 1385 Lines 19686 19686 Branches 2387 2387 ======================================= Hits 17923 17923 Misses 1501 1501 Partials 262 262 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.