INFRA-132 - Batch #6
[civicrm-core.git] / CRM / Contribute / Form / SoftCredit.php
index 1068c45260a9b7dd55b5370b48a1a4c25c7d8c4d..31a54b9cdf90f46a769f6ffdffb42bce3128a0a9 100644 (file)
@@ -97,8 +97,8 @@ class CRM_Contribute_Form_SoftCredit {
       return $form;
     }
 
-    // by default generate 5 blocks
-    $item_count = 6;
+    // by default generate 10 blocks
+    $item_count = 11;
 
     $showSoftCreditRow = 2;
     if ($form->getAction() & CRM_Core_Action::UPDATE) {
@@ -133,7 +133,7 @@ class CRM_Contribute_Form_SoftCredit {
       $form->addSelect("soft_credit_type[{$rowNumber}]", array(
           'entity' => 'contribution_soft',
           'field' => 'soft_credit_type_id',
-          'label' => ts('Type')
+          'label' => ts('Type'),
         ));
       if (!empty($form->_softCreditInfo['soft_credit'][$rowNumber]['soft_credit_id'])) {
         $form->add('hidden', "soft_credit_id[{$rowNumber}]",
@@ -203,8 +203,7 @@ class CRM_Contribute_Form_SoftCredit {
    * @param $self
    *
    * @return array
-   *   of errors
-   * @static
+   *   Array of errors
    */
   public static function formRule($fields, $errors, $self) {
     $errors = array();