opened
eclarizio
username_0
The problem is that when creating or editing dialogs, if you add a new field, the field is not saved before the associations are created, and so there is no id to send up. Therefore we have to send up the name and have the backend handle the association creation by name instead.

This will need to be combined with [this main repo PR](https://github.com/ManageIQ/manageiq/pull/16753) in order to fully fix the bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1518942

@miq-bot add_label gaprindashvili/yes, bug

@romanblanco @username_1 Please review
Use '.name' instead of '.id' for refresh field list
issue
created
himdel
username_1
All those `<dialog-editor-modal-field-template...>` need a closing tag..
comment
created
himdel
username_1
Nice DRYing up :+1: 
Looks like what actually changes is..

```diff
-ng-options="dynamicField.id as dynamicField.label for dynamicField in vm.modalData.dynamicFieldList"
+ng-options="dynamicField.name as dynamicField.label for dynamicField in vm.modalData.dynamicFieldList"
```
comment
created
himdel
username_1
@miq-bot add_label gaprindashvili/backported
@miq-bot remove_label gaprindashvili/yes

This was released in manageiq-ui-components 1.0.5, backported to gaprindashvili via ManageIQ/manageiq-ui-classic#3203 .
comment