* Optimize code, fix bug 32456 32457 32463 32464 32477 32480. See merge request easycorp/zentaopms!7086