Skip to content

Commit

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

Display folder field in evidence when creating from it from an applied control
  • Loading branch information
Mohamed-Hacene authored Oct 17, 2024
2 parents d0c5410 + b233777 commit e2aefd9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@
field="attachment"
label={m.attachment()}
/>
{#if !(initialData.applied_controls || initialData.requirement_assessments)}
{#if !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 e2aefd9

Please sign in to comment.