Commit 07f68d13 authored by ErikHommel's avatar ErikHommel
Browse files

fix problems with testing - remove declarations of parameter types so drupal data can be processed

parent 48710956
......@@ -32,7 +32,6 @@ class MultiPetition extends AbstractAction {
$specs->addSpecification(new Specification('contact_id', 'Integer', E::ts('Contact ID'), TRUE, NULL));
$specs->addSpecification(new Specification('campaign_id', 'Integer', E::ts('Primary Campaign ID'), FALSE, NULL));
$specs->addSpecification(new Specification('more_information', 'Integer', E::ts('More Information'), FALSE, 0));
return $specs;
}
......@@ -48,7 +47,6 @@ class MultiPetition extends AbstractAction {
*
* @param ParameterBagInterface $parameterBag
* @param ParameterBagInterface $output
* @throws ExecutionException
*/
public function doAction(ParameterBagInterface $parameterBag, ParameterBagInterface $output) {
$primaryCampaignId = (int) $parameterBag->getParameter('campaign_id');
......@@ -68,12 +66,12 @@ class MultiPetition extends AbstractAction {
/**
* Method to sign the petition
*
* @param int $petitionId
* @param int $contactId
* @param bool $moreInformation
* @param int $primaryCampaignId
* @param $petitionId
* @param $contactId
* @param $moreInformation
* @param $primaryCampaignId
*/
private function signPetition(int $petitionId, int $contactId, bool $moreInformation, int $primaryCampaignId) {
private function signPetition($petitionId, $contactId, $moreInformation, $primaryCampaignId) {
try {
$petitionParams = [
'petition_flag' => 1,
......
......@@ -14,8 +14,8 @@
<url desc="Support">https://civicoop.org</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2021-11-09</releaseDate>
<version>1.18</version>
<releaseDate>2021-11-17</releaseDate>
<version>1.19</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment