Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature presidecms 2910 email export within mailing list pulls all other email templates as well #1512

Open
wants to merge 3 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions system/config/Config.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ component {
interceptorSettings.customInterceptionPoints.append( "postRenderDelayedViewlets" );
interceptorSettings.customInterceptionPoints.append( "preRunCustomization" );
interceptorSettings.customInterceptionPoints.append( "postRunCustomization" );
interceptorSettings.customInterceptionPoints.append( "onEmailTemplateGetAdditionalQueryStringForBuildAjaxListingLink" );
interceptorSettings.customInterceptionPoints.append( "onEmailTemplatePreFetchRecordsForGridListing" );
}

private void function __setupCachebox() {
Expand Down
20 changes: 20 additions & 0 deletions system/handlers/admin/datamanager/email_template.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,24 @@ component {
return formName;
}

private string function getAdditionalQueryStringForBuildAjaxListingLink( event, rc, prc, args={} ) {
var interceptArgs = {
objectName = prc.objectName ?: ""
, recordId = prc.recordid ?: ""
, additionalQueryString = ""
};

announceInterception( "onEmailTemplateGetAdditionalQueryStringForBuildAjaxListingLink", interceptArgs );

return interceptArgs.additionalQueryString;
}

public void function preFetchRecordsForGridListing( event, rc, prc, args={} ) {
var interceptArgs = {
args = arguments.args
, rc = arguments.rc
}

announceInterception( "onEmailTemplatePreFetchRecordsForGridListing", interceptArgs );
}
}