From 41ea270f447d3539ee6d9569f098474696ac8d15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 2 Oct 2022 15:59:08 +0200 Subject: [PATCH] Please cherry-pick: - don't copy fields from current (old data) to new instance (updated data) --- .../action/JobsAdminDepartmentActionWebRequestBean.java | 1 - .../action/JobsAdminBranchOfficeActionWebRequestBean.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java index df87d5d7..ebddc599 100644 --- a/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java @@ -403,7 +403,6 @@ public class JobsAdminDepartmentActionWebRequestBean extends BaseJobsBean implem department.setDepartmentBranchOffice(this.getDepartmentBranchOffice()); department.setDepartmentHeadquarter(this.getDepartmentHeadquarter()); department.setDepartmentId(this.getDepartmentId()); - System.out.println("this.departmentLead=" + this.getDepartmentLead()); department.setDepartmentLead(this.getDepartmentLead()); department.setDepartmentUserOwner(this.getDepartmentUserOwner()); diff --git a/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java index 96256bf6..aad9c0a1 100644 --- a/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java @@ -901,9 +901,6 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl return ""; //NOI18N } - // Copy all fields - BranchOffices.copyBranchOfficeData(this.getCurrentBranchOffice(), branchOffice); - // Initialize updated instance final BranchOffice updatedBranchOffice; -- 2.39.5