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

Template bugs [Please Ignore] #514

Closed
wants to merge 4 commits into from
Closed

Conversation

kiatng
Copy link
Collaborator

@kiatng kiatng commented Sep 5, 2018

Bug 1. In PHP7, $this->getFieldValue('qty')*1 will produce a warning A non-numeric value encountered when qty is 0.

Bug 2. The first key of the street array is 0 and not 1, resulting in missing street[0] and erroneous street address in the register form. Note that this only affects re-rendering of the register form when there was an exception in an earlier form submit.

@Flyingmana
Copy link
Contributor

I would appreciate if you could split this up in two separate PullRequests.

Bug 1 is pretty obvious for me

But for Bug2 I would need to look a bit more into the code, so this will take a bit longer to review. And it would be sad, if we need to delay the Fix for Bug1 because of this.

…numeric value encountered" when qty is an empty string. Note that earlier fix using type casting to (int) is faulty when qty is decimal.
@kiatng kiatng closed this Sep 6, 2018
@kiatng kiatng deleted the template_bugs branch September 6, 2018 12:29
@kiatng kiatng changed the title Template bugs Template bugs [Please Ignore] Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants