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

[Bug]: post code starting with 0 shown wrong #113

Closed
1 task done
KLIS-IT opened this issue Jan 3, 2023 · 3 comments
Closed
1 task done

[Bug]: post code starting with 0 shown wrong #113

KLIS-IT opened this issue Jan 3, 2023 · 3 comments
Labels

Comments

@KLIS-IT
Copy link

KLIS-IT commented Jan 3, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In case of station information has a post code starting with 0 it is not shown in station information and data point postCode
image

What did you expect to happen?

post codes starting with 0 are shown correct (as string not number)

How to reproduce it (minimal and precise)

add new station with post code starting with 0

Adapter version

3.3.3

Environment

- Node: v16.15.1
- npm: 8.11.0
- JS-Controller: 4.0.24
- Operating system: Raspbian GNU/Linux 10 (buster)

What browsers are you seeing the problem on?

Chrome

Screenshots & Log

image

@KLIS-IT KLIS-IT added the bug label Jan 3, 2023
@KLIS-IT KLIS-IT changed the title [Bug]: post code stating with 0 shown wrong [Bug]: post code starting with 0 shown wrong Jan 3, 2023
@xXBJXx
Copy link
Contributor

xXBJXx commented Jan 3, 2023

The data comes from the server without a preceding 0.
image
the input field is currently set to the type number there is a number with a 0 in front of it not possible I will change the whole thing to string.
Then you can enter the number with a 0 by hand.

xXBJXx added a commit that referenced this issue Jan 3, 2023
* (xXBJXx) Fixed an issue where a postal code starting with 0 was not displayed correctly [Issue #113](#113)
@xXBJXx
Copy link
Contributor

xXBJXx commented Jan 3, 2023

should be fixed in version 3.3.5, please note the Migration to 3.3.5

with this version it will be checked if it is a postal code with only 4 digits, if yes a 0 will be put in front of it automatically

@KLIS-IT
Copy link
Author

KLIS-IT commented Jan 5, 2023

Thanks a lot - is working fine with version 3.3.5

@KLIS-IT KLIS-IT closed this as completed Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants