Skip to content

Lỗi cập nhật đơn vị cập nhật nhầm tổ chức cha #1287

@dangkhanhtrung

Description

@dangkhanhtrung

Mình phát hiện một lỗi của OpenCPS từ phiên bản đầu tới phiên bản hiện tại. Khi cập nhật đơn vị làm việc WorkingUnit tổ chức cha bị cập nhật sai:
Organization org = null;
org = OrganizationLocalServiceUtil
.getOrganization(workingUnit.getMappingOrganisationId());

	if(parentWorkingUnitId <= 0) {
		org.setParentOrganizationId(OrganizationConstants
				.DEFAULT_PARENT_ORGANIZATION_ID);
	} else {
		org.setParentOrganizationId(parentWorkingUnitId);

}
Dòng code này: org.setParentOrganizationId(parentWorkingUnitId);
Lẽ ra phải là cập nhật tổ chức cha nhưng lại thiết lập thành đơn vị cha.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions