PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
← All changes | src/Campaigns/Models/Campaign.php +3 -1 4.15.0 → 4.18.0 View file →
@@ -77,8 +77,9 @@
77 77 return give(DonationFormsRepository::class)->getById($this->defaultFormId);
78 78 }
79 79
80 80 /**
81 + * @since 4.18.0 Return each associated form once when its metadata contains duplicate keys.
81 82 * @since 4.0.0
82 83 */
83 84 public function forms(): ModelQueryBuilder
84 85 {
@@ -87,9 +88,10 @@
87 88 $builder
88 89 ->leftJoin('give_campaign_forms', 'campaign_forms')
89 90 ->on('campaign_forms.form_id', 'id');
90 91 })
91 - ->where('campaign_forms.campaign_id', $this->id);
92 + ->where('campaign_forms.campaign_id', $this->id)
93 + ->groupBy('forms.ID');
92 94 }
93 95
94 96 /**
95 97 * @since 4.0.0