Skip to content

Commit

Permalink
Merge pull request #431 from himdel/tag-defaultvalue
Browse files Browse the repository at this point in the history
Dialog User - set default value for tag controls

(cherry picked from commit a47b131)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1859524
  • Loading branch information
mzazrivec authored and simaishi committed Jul 23, 2020
1 parent 8de4907 commit 2d69e1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dialog-user/services/dialogData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ export default class DialogDataService {
}

if (data.type === 'DialogFieldTagControl') {
defaultValue = 0;
if (data.options.force_single_value) {
defaultValue = '';
} else {
defaultValue = [];
}
}

return defaultValue;
Expand Down

0 comments on commit 2d69e1f

Please sign in to comment.