dev/core#1093 add a bulkSave action for many customFields in one go
[civicrm-core.git] / CRM / Utils / Migrate / Import.php
index 0a25d24bc7ab8ae1f3c4c54f51006370677001d0..590a924c70546468fed9e2ed2e58276052ad4913 100644 (file)
@@ -31,6 +31,7 @@
  * @copyright CiviCRM LLC (c) 2004-2019
  */
 class CRM_Utils_Migrate_Import {
+
   /**
    * Class constructor.
    */
@@ -385,6 +386,7 @@ AND        v.name = %1
 
         // Only rebuild the table's trigger on the last field added to avoid un-necessary
         // and slow rebuilds when adding many fields at the same time.
+        // @todo - call bulkSave instead.
         $triggerRebuild = FALSE;
         if ($count == $total) {
           $triggerRebuild = TRUE;