From 3ef90365e73a9cfe363ee2ce97684921643b6458 Mon Sep 17 00:00:00 2001 From: Izhar Aazmi Date: Wed, 31 Aug 2016 16:41:22 +0530 Subject: [PATCH] Fix early exit from foreach in JForm::removeGroup The method is supposed to remove all instances of element but it exits the loop on first iteration only. Looks like a quick copy-paste from removeField may have caused this. --- libraries/joomla/form/form.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/joomla/form/form.php b/libraries/joomla/form/form.php index 9993f94d1bab5..09b7a58954a0f 100644 --- a/libraries/joomla/form/form.php +++ b/libraries/joomla/form/form.php @@ -916,11 +916,9 @@ public function removeGroup($group) { $dom = dom_import_simplexml($element); $dom->parentNode->removeChild($dom); - - return true; } - return false; + return true; } /**