-
Notifications
You must be signed in to change notification settings - Fork 45
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
Undefined array key 0 in Subject select input #73
Conversation
Co-authored-by: Maxime Flasquin <maxime.flasquin@gmail.com>
hello @mflasquin, ok, updated, thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use !empty(
, it will be the cleanest. :)
Hello @Hlavtox, in fact we need to avoid 0 because array key 0 will be never defined. And finally, @mflasquin, I'm not sure we need to put !== because with that, if $this->customer_thread['id_contact'] is different than int type, $contacts[$this->customer_thread['id_contact']] will also give an error. |
@NicolasCador Yes that is what empty will do. It will return true only if it's defined, not false, not null, not empty string, not zero. :-) |
hello @Hlavtox, ok, thank you very much, I didn't know for 0, I updated |
Co-authored-by: Tom Zajac <SharakPL@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @NicolasCador ,
Tested your PR on PS 8.0.x
, 8.1.3
and develop
.
It works as expected. No more error on the Subject !
It is QA ✅
Thanks everyone! |
Send a message to customer
Open Customer Service/Customer Service tab in BO
Send a new message concerning this PO
Open the customer e-mail, follow the link to answer
It opens the Contact us page
There isn't any error in the Subject select input