orma / openroads-vn-analytics

BSD 2-Clause "Simplified" License
0 stars 1 forks source link

[Asset][System Redirect to wrong page after adding new asset] #576

Closed tailm1 closed 5 years ago

tailm1 commented 5 years ago

Click Asset -> Click any Provice -> Click District -> Click Add Asset -> Input data (ex: 180LS0002) and then click Save -> Click Add Asset button again -> System redirects user to the wrong page. image

batpad commented 5 years ago

Thank you @tailm1 .

@geohacker I am unable to reproduce exactly, but https://github.com/orma/openroads-vn-analytics/issues/583 seems really critical and causes all sorts of strange behaviour when adding assets to provinces that are not in the frontend list. Let's try and fix that as soon as possible and then re-test these. I can take that on.

geohacker commented 5 years ago

This is the expected behavior. The VPROMM ID 180LS0002 is invalid as it has only 9 digits.

There's also an alert showing this error:

image

tailm1 commented 5 years ago

@geohacker you can try another successful case. Once you added successfully and then you click Add New Asset again. The system will redirect to home page

tailm1 commented 5 years ago

@geohacker Please re-open this issue. I still can reproduce. You try to input with value 180LS00020.