Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dangkhanhtrung opened this issue Dec 12, 2017 · 1 comment
Open

Comments

@dangkhanhtrung
Copy link
Contributor

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.

@khoahp
Copy link
Member

khoahp commented Dec 12, 2017

@dangkhanhtrung cảm ơn anh Trung đã phát hiện và góp ý cho cộng đồng OpenCPS.

Về phần lỗi này @binhth tiếp nhận và xử lý nhé, cập nhật trên phiên bản 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants