Merge pull request #12345 from MiyaNoctem/CRM-195-add-counts-to-contribution-sub...
[civicrm-core.git] / CRM / Contribute / Form / SoftCredit.php
index c1bbd1b5e473904b72b2397ca1480cc977f07f7c..4b398d88874d991511f5a9a69e704e2082d7f2c0 100644 (file)
@@ -68,7 +68,7 @@ class CRM_Contribute_Form_SoftCredit {
     }
 
     // by default generate 10 blocks
-    $item_count = 11;
+    $item_count = $form->_softCreditItemCount;
 
     $showSoftCreditRow = 2;
     if ($form->getAction() & CRM_Core_Action::UPDATE) {