Martin Betak has uploaded a new change for review. Change subject: webadmin: Pass created_by_user_id field on VM Edit ......................................................................
webadmin: Pass created_by_user_id field on VM Edit Explicitly set created_by_user_id field to the original (unchanged) value for VM upon edit to avoid backend error due to change to non-editable field. Change-Id: I129c7e2c48b1fda5cdd1719e5f6a1b95ec46843d Signed-off-by: Martin Betak <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/21/16621/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java index a7aec44..7f7595a 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java @@ -1979,6 +1979,8 @@ getcurrentVm().setCpuPinning((String) model.getCpuPinning() .getEntity()); getcurrentVm().setVncKeyboardLayout((String) model.getVncKeyboardLayout().getSelectedItem()); + // explicitly pass non-editable field from the original VM + getcurrentVm().setCreatedByUserId(selectedItem.getCreatedByUserId()); if ((Boolean) model.getIsAutoAssign().getEntity()) { getcurrentVm().setDedicatedVmForVds(null); -- To view, visit http://gerrit.ovirt.org/16621 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I129c7e2c48b1fda5cdd1719e5f6a1b95ec46843d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Betak <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
