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

Javascript error in bzkanban.js - easy fix #81

Open
addw opened this issue Jun 18, 2020 · 1 comment
Open

Javascript error in bzkanban.js - easy fix #81

addw opened this issue Jun 18, 2020 · 1 comment
Labels

Comments

@addw
Copy link

addw commented Jun 18, 2020

Near line 1000:
switch (obj.code) {

obj.code is a number but the case values are strings ("32000" and "410") - so they will never match as comparison in a switch is strict (aka ===).

The fix is to remove the quotes round the numbers.

@leif81 leif81 added the bug label Mar 24, 2021
@leif81
Copy link
Owner

leif81 commented Mar 24, 2021

@addw thank-you for the report. And sorry for not responding sooner I somehow missed this.

Small fix, but would you like to submit a PR for this?

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