From e17b63e6fc8ed11120d342d2c3995ef2f4b818f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Mon, 14 Jun 2021 08:16:35 +0200 Subject: [PATCH] Fixed issue with single line --- pandora_console/include/class/ExternalTools.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/class/ExternalTools.class.php b/pandora_console/include/class/ExternalTools.class.php index 5918f05459..43648f92d7 100644 --- a/pandora_console/include/class/ExternalTools.class.php +++ b/pandora_console/include/class/ExternalTools.class.php @@ -1004,6 +1004,10 @@ class ExternalTools extends HTML if (parseInt(lineNumber) >= 1 && lineCount > 1) { $("#custom_row_" + lineNumber).remove(); + } else if (lineCount === 1) { + $("#custom_row_" + lineNumber).find('input').each(function() { + $(this).val(''); + }); } if (lineCount === 1) {