WebTest Core Bug
authorjitendrapurohit <jitendra.purohit@webaccess.co.in>
Thu, 15 May 2014 09:43:01 +0000 (15:13 +0530)
committerjitendrapurohit <jitendra.purohit@webaccess.co.in>
Thu, 15 May 2014 09:43:01 +0000 (15:13 +0530)
CRM/Core/Form/Tag.php

index f0065cf828881e4822f42ecffcd4dc887e3e3804..117c53075da296e475ee5b86217c46d4014741f0 100644 (file)
@@ -141,7 +141,8 @@ class CRM_Core_Form_Tag {
       // in that case we create empty tagset params so that below logic works and tagset are
       // deleted correctly
       foreach ($form->_tagsetInfo as $tagsetName => $tagsetInfo) {
-        $tagsetId = substr($tagsetName, strlen('parentId_'));
+        $tagsetId = explode('parentId_', $tagsetName);
+        $tagsetId = $tagsetId[1];
         if (empty($params[$tagsetId])) {
           $params[$tagsetId] = '';
         }