[ https://issues.apache.org/jira/browse/AMBARI-16003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15252848#comment-15252848 ]
Hudson commented on AMBARI-16003: --------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #4708 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4708/]) AMBARI-16003: JS error on hosts filtering when filter for same field is (rzang: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=04f7d5c3efe8af2c43824f32c1ce04d2ddc6cee2]) * ambari-web/app/views/main/host/combo_search_box.js > JS error on hosts filtering when filter for same field is used twice > -------------------------------------------------------------------- > > Key: AMBARI-16003 > URL: https://issues.apache.org/jira/browse/AMBARI-16003 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.4.0 > Reporter: Richard Zang > Assignee: Richard Zang > Fix For: 2.4.0 > > Attachments: AMBARI-16003.patch > > > * Open hosts page > * Do filtering "Cores: 3" and "Cores: 1" in the same time > * JS-error appears: {{Uncaught TypeError: value.charAt is not a function}} > {code} > getComparisonType: function (value) { > var comparisonChar = value.charAt(0); > var result = 'EQUAL'; > if (isNaN(comparisonChar)) { > switch (comparisonChar) { > case '>': > result = 'MORE'; > break; > case '<': > result = 'LESS'; > break; > } > } > return result; > }, > {code} > UI expects that {{value}} is a string and not an array of strings. > Same issue is when filtering is done by RAM-field -- This message was sent by Atlassian JIRA (v6.3.4#6332)