{"action":"closed","issue":{"url":"https://api.github.com/repos/vitmalina/w2ui/issues/1073","labels_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1073/comments","events_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1073/events","html_url":"https://github.com/vitmalina/w2ui/issues/1073","id":112796981,"number":1073,"title":"Field name of summary and value of 1 triggers summary field","user":{"login":"deployable","id":2499983,"avatar_url":"https://avatars.githubusercontent.com/u/2499983?v=3","gravatar_id":"","url":"https://api.github.com/users/deployable","html_url":"https://github.com/deployable","followers_url":"https://api.github.com/users/deployable/followers","following_url":"https://api.github.com/users/deployable/following{/other_user}","gists_url":"https://api.github.com/users/deployable/gists{/gist_id}","starred_url":"https://api.github.com/users/deployable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deployable/subscriptions","organizations_url":"https://api.github.com/users/deployable/orgs","repos_url":"https://api.github.com/users/deployable/repos","events_url":"https://api.github.com/users/deployable/events{/privacy}","received_events_url":"https://api.github.com/users/deployable/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T12:57:34Z","updated_at":"2015-11-01T03:14:46Z","closed_at":"2015-11-01T03:14:46Z","body":"The find() check that is being used for the `summary: true` check also turns a field of \"1\" into a summary row.  \r\n\r\nhttps://github.com/vitmalina/w2ui/blob/adb278847b625d57ca96de16f829033c08265334/src/w2grid.js#L3910-L3914\r\n\r\nResults in this check:\r\n\r\nhttps://github.com/vitmalina/w2ui/blob/adb278847b625d57ca96de16f829033c08265334/src/w2grid.js#L371\r\n\r\nThat check should be `!==` in this case. `find()` seems to be used a lot of other places though. \r\n\r\n```\r\n> true != 1\r\nfalse\r\n> true !== 1\r\ntrue\r\n```\r\n\r\nFrom previous issues, there was mention of 1.5 moving all w2ui controlling options in data into a sub object. It was something to do with `style` I think.  I assume this summary field should be moving into that metadata object too?"}}