From 905d768322dc2b12f302374c91efa6539c8586ab Mon Sep 17 00:00:00 2001
From: mdtrooper <tres.14159@gmail.com>
Date: Tue, 9 Jun 2015 11:43:46 +0200
Subject: [PATCH] Fixed the javascript to check a numeric field when it is
 empty. TICKET: #2176

---
 .../godmode/reporting/reporting_builder.list_items.php       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pandora_console/godmode/reporting/reporting_builder.list_items.php b/pandora_console/godmode/reporting/reporting_builder.list_items.php
index 08f201f379..44871ae969 100755
--- a/pandora_console/godmode/reporting/reporting_builder.list_items.php
+++ b/pandora_console/godmode/reporting/reporting_builder.list_items.php
@@ -507,6 +507,11 @@ function added_ids_sorted_items_to_hidden_input() {
 function only_numbers(name) {
 	var value = $("input[name='" + name + "']").val();
 	
+	if (value == "") {
+		// Do none it is a empty field.
+		return;
+	}
+	
 	value = parseInt(value);
 	
 	if (isNaN(value)) {