CRM-16529 Remove repeated table names in error
authorJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 20 May 2015 14:16:08 +0000 (15:16 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 20 May 2015 14:16:08 +0000 (15:16 +0100)
CRM/Financial/BAO/FinancialType.php

index 237861a9abe127ca9ee4d0899ccacd0f47587ecd..90fd35c49e21c65125d1cd09b7ed18582f58b041 100644 (file)
@@ -135,7 +135,7 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
       $tables = array();
       foreach ($occurrences as $occurrence) {
         $className = get_class($occurrence);
-        if (!in_array($className, $ignoreTables)) {
+        if (!in_array($className, $tables) && !in_array($className, $ignoreTables)) {
           $tables[] = $className;
         }
       }