← All changes
|
src/Campaigns/Actions/CreateDefaultCampaignForm.php
+2
-0
4.16.2
→
4.16.9
View file →
| @@ -17,8 +17,9 @@ | ||
| 17 | 17 | */ |
| 18 | 18 | class CreateDefaultCampaignForm |
| 19 | 19 | { |
| 20 | 20 | /** |
| 21 | + * @since 4.16.8 Set formStatus on FormSettings so it agrees with the form's own status. | |
| 21 | 22 | * @since 4.14.2 add formTitle to FormSettings |
| 22 | 23 | * @since 4.2.0 return if campaign already has default form set |
| 23 | 24 | * @since 4.1.0 Added inheritCampaignColors property to FormSettings |
| 24 | 25 | * @since 4.0.0 |
| @@ -35,8 +36,9 @@ | ||
| 35 | 36 | 'title' => $campaign->title, |
| 36 | 37 | 'status' => DonationFormStatus::PUBLISHED(), |
| 37 | 38 | 'settings' => FormSettings::fromArray([ |
| 38 | 39 | 'formTitle' => $campaign->title, |
| 40 | + 'formStatus' => DonationFormStatus::PUBLISHED, | |
| 39 | 41 | 'showHeader' => false, |
| 40 | 42 | 'enableDonationGoal' => false, |
| 41 | 43 | 'goalAmount' => $campaign->goal, |
| 42 | 44 | 'goalType' => $campaign->goalType->getValue(), |