Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B40DA18D4D for ; Thu, 21 Apr 2016 01:06:25 +0000 (UTC) Received: (qmail 65796 invoked by uid 500); 21 Apr 2016 01:06:25 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 65640 invoked by uid 500); 21 Apr 2016 01:06:25 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 65602 invoked by uid 99); 21 Apr 2016 01:06:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 01:06:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7D08D2C1F5D for ; Thu, 21 Apr 2016 01:06:25 +0000 (UTC) Date: Thu, 21 Apr 2016 01:06:25 +0000 (UTC) From: "Richard Zang (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-16003) JS error on hosts filtering when filter for same field is used twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Richard Zang created AMBARI-16003: ------------------------------------- Summary: 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 * 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)