From 679542eaaa654e7d298446331fd4dde2fa011b59 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Thu, 10 Jun 2021 15:03:31 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04051=20Add=20robustness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/forms-json-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/forms-json-utils.js b/js/forms-json-utils.js index 45bd1fdb7..23b897689 100644 --- a/js/forms-json-utils.js +++ b/js/forms-json-utils.js @@ -197,7 +197,7 @@ function activateFirstTabWithError(sFormId) { $tabs.each(function (index, element) { var $fieldsWithError = $(element).find(".form_validation"); - if ($fieldsWithError.length > 0) + if ($fieldsWithError.length > 0 && ($tabsContainer.tabs("instance") !== undefined)) { $tabsContainer.tabs("option", "active", index); return false;