Skip to content

Commit

Permalink
Merge pull request #956 from intuitem/revert-954-fix/select-domain-in…
Browse files Browse the repository at this point in the history
…-global-object-nested-create

Revert "Display folder field in evidence when creating from it from an applied control"
  • Loading branch information
Mohamed-Hacene authored Oct 17, 2024
2 parents e2aefd9 + 1dcf0fb commit 8cd02fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
field="attachment"
label={m.attachment()}
/>
{#if !initialData.requirement_assessments}
{#if !(initialData.applied_controls || initialData.requirement_assessments)}
<AutocompleteSelect
{form}
options={getOptions({ objects: model.foreignKeys['folder'] })}
field="folder"
cacheLock={cacheLocks['folder']}
bind:cachedValue={formDataCache['folder']}
label={m.domain()}
hidden={initialData.applied_controls || initialData.requirement_assessments}
/>
{:else}
<HiddenInput {form} field="folder" />
Expand Down

0 comments on commit 8cd02fd

Please sign in to comment.