infor-cloud / m3-h5-sdk

https://infor-cloud.github.io/m3-h5-sdk/
34 stars 20 forks source link

Incorrect Current Division (Blank Division) under M3 H5 Classic UI #162

Open njpongSL opened 1 year ago

njpongSL commented 1 year ago

Describe the bug Under M3 H5 Classic UI (M3CE), when user changed to Blank Division, the CurrentDivision value is having value "" instead of undefined. Thus, the UserServicesCore function addAliases is assign with Division value which is incorrect.

To Reproduce Steps to reproduce the behavior:

  1. Make sure "Enable classic UI" option is turned on in M3 H5
  2. Current user default company 888 divison 200 (888/200) in MNS150
  3. Change user company division to CMP888 (888/Blank)
  4. Open any H5 SDK program that uses this.userService.getUserContext(), example here is M3 Odin default program that show User Context:

H5SDK_IncorrectCurrentDivision

Expected behavior CurrentDivision retrieved from User Context should be Blank as its value is "" but not undefined. UserServiceCore.addAliases need to be fixed.

Version

Additional context Add any other context about the problem here.