-
Notifications
You must be signed in to change notification settings - Fork 49
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
COM- 3305 Added string method to check special char #310
base: develop
Are you sure you want to change the base?
Conversation
@@ -206,6 +206,9 @@ define([ | |||
filter: function(collection) { | |||
var filterStr = ""; | |||
var qName = $("#searchName").val(); | |||
if (typeof String.prototype.mzCheckSpacialChar === 'function') { |
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.
since mzCheckSpacialChar is part of SDK then it will always be available. so no need to check this is a function (mzCheckSpacialChar ) is available or not but not 100% sure about it.
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.
Yes, I added this for safer side if function is not loaded by sdk current search functionality should work, but in other side if SDK will not load mozu application will not work so I am fine to remove this if condition.
66681fe
to
14e9985
Compare
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.
I don't think this is the best way to fix such a common use case. If we are adding a generic filter escape method we should hook it into a generic place and fix all filter request strings. Not just this one place.
See my comments on the Storefront PR. That has more details.
a2aee56
to
50e5859
Compare
b6dd923
to
d880655
Compare
This PR needs to be rebased and integrate the changes from PR #346. I still think the fix there needs some more work, though. Please review my comments again. |
1d3226d
to
0c5fbf4
Compare
cf34680
to
6069f65
Compare
6069f65
to
f647718
Compare
No description provided.