Revert "Fix regression on frequency unit handling in 5.69"
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 19 Dec 2023 11:19:54 +0000 (11:19 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 19 Dec 2023 11:19:54 +0000 (11:19 +0000)
This reverts commit e62b3a8f51e8396f5658313954cc1884567bce6b.

CRM/Core/Payment/Dummy.php

index 57a963cbc8196174298ddd7298d9091d424f8d16..3bd2318dc797a7efc7f505649385976c4be6b9e3 100644 (file)
@@ -223,9 +223,7 @@ class CRM_Core_Payment_Dummy extends CRM_Core_Payment {
     // does this, it needs to invoke this hook after it has done translation,
     // but before it actually starts talking to its proprietary back-end.
     if ($propertyBag->getIsRecur()) {
-      if (empty($params['frequency_interval']) || empty($params['frequency_unit'])) {
-        CRM_Core_Error::deprecatedWarning('contracted frequency params not passed');
-      }
+      $throwAnENoticeIfNotSetAsTheseAreRequired = $propertyBag->getRecurFrequencyInterval() . $propertyBag->getRecurFrequencyUnit();
     }
     // no translation in Dummy processor
     CRM_Utils_Hook::alterPaymentProcessorParams($this, $params, $propertyBag);