Skip to content

Commit

Permalink
Check first if sopt is not null if set in searchGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Apr 21, 2011
1 parent c2b30cc commit 8474c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grid.formedit.js
Expand Up @@ -128,7 +128,7 @@ $.jgrid.extend({
var cmop = "eq";
if(cmi >=0 && columns[cmi].searchoptions && columns[cmi].searchoptions.sopt) {
cmop = columns[cmi].searchoptions.sopt[0];
} else if(p.sopt.length) {
} else if(p.sopt && p.sopt.length) {
cmop = p.sopt[0];
}
defaultFilters = {"groupOp": "AND",rules:[{"field":colnm,"op":cmop,"data":""}]};
Expand Down

0 comments on commit 8474c39

Please sign in to comment.