Skip to content

Commit

Permalink
Fixed site selector for contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Croker committed Oct 6, 2020
1 parent a3bc590 commit 668edce
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

### Fixed
- Fixed a bug in which the default system from name and email were not parsed when loaded from environment settings ([#176](https://github.com/putyourlightson/craft-campaign/issues/176)).
- Fixed site selector for contacts ([#177](https://github.com/putyourlightson/craft-campaign/issues/177)).

### Changed
- Pending contacts now persist so that verification links remain valid until they are purged ([#169](https://github.com/putyourlightson/craft-campaign/issues/169)).
Expand Down
2 changes: 1 addition & 1 deletion src/templates/contacts/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{% set segment3 = craft.app.request.getSegment(3) ? craft.app.request.getSegment(3) ~ '/' : '' %}
{% include '_elements/sitemenu' with {
selectedSiteId: currentSite.id,

urlFormat: url('campaign/contacts/' ~ segment3 ~ '{handle}'),
} only %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/reports/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% set crumbs = crumbs is defined ? baseCrumbs|merge(crumbs) : [] %}

{% set showSiteMenu = showSiteMenu ?? false %}
{% set siteId = siteId ?? null %}
{% set siteId = craft.app.request.getParam('siteId') %}


{% block contextMenu %}
Expand Down
1 change: 0 additions & 1 deletion src/templates/reports/campaigns/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% set crumbs = [] %}

{% set showSiteMenu = true %}
{% set siteId = craft.app.request.getParam('siteId') %}
{% set data = craft.campaign.reports.getCampaignsReportData(siteId) %}


Expand Down
1 change: 0 additions & 1 deletion src/templates/reports/contacts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
{% set crumbs = [] %}

{% set showSiteMenu = false %}
{% set siteId = craft.app.request.getParam('siteId') %}
{% set data = craft.campaign.reports.getContactsReportData() %}


Expand Down
1 change: 0 additions & 1 deletion src/templates/reports/mailinglists/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
{% set crumbs = [] %}

{% set showSiteMenu = true %}
{% set siteId = craft.app.request.getParam('siteId') %}
{% set data = craft.campaign.reports.getMailingListsReportData(siteId) %}


Expand Down

0 comments on commit 668edce

Please sign in to comment.