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

Save fail in some circonstance #72

Closed
PascalPiche opened this issue Sep 8, 2015 · 6 comments
Closed

Save fail in some circonstance #72

PascalPiche opened this issue Sep 8, 2015 · 6 comments

Comments

@PascalPiche
Copy link

strlen() expects parameter 1 to be string, array given
bug_order-field

@PascalPiche
Copy link
Author

May be in relation than my form got some errors, required field not filled. may generate an array of value than a single string for the order-entries value?. A quick fix was to add a check to remove de array

if (is_array($value)) {
$value = $value[0];
}

@nitriques
Copy link
Member

cc @jonmifsud by any chance, does it rings any bell ?

@jonmifsud
Copy link
Contributor

Yes it does, sorry missed the original post. @nitriques thanks for the ping. @PascalPiche I think I should have pushed a fix for this on my branch. Issue basically lies in the fact that when using the filtering ability, there are multiple items. At least that's what I think it is.

I don't have any errors on production with that version, if you still have issues can you confirm if you are using any 'filters' selected within the backend for the field. So I can try replicate the setup.

@nitriques
Copy link
Member

Thanks a lot Jonathan.

@nitriques
Copy link
Member

@jonmifsud
Copy link
Contributor

Yep
On Thu, 10 Sep 2015 at 19:40 Nicolas Brassard notifications@github.com
wrote:

That branch I assume ?
https://github.com/jonmifsud/order_entries/tree/fixorderxml


Reply to this email directly or view it on GitHub
#72 (comment)
.

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

No branches or pull requests

3 participants