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

Allow data-params to be specified as an item property and passed to CRM.api3 call #11639

Merged
merged 2 commits into from
Feb 7, 2018

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Feb 6, 2018

See description in Jira - CRM-21741

Overview

A brief description of the pull request. Try to keep it non-technical.

Before

The current status. Please provide screenshots or gifs (LICEcap, SilentCast) where appropriate.

After

What has been changed. Please provide screenshots or gifs (LICEcap, SilentCast) where appropriate.

Technical Details

If the PR introduces noteworthy technical changes, please describe them here. Provide code snippets if necessary

Comments

Anything else you would like the reviewer to note


@eileenmcnaughton
Copy link
Contributor

@colemanw one for you I think - although the sprinters might perhaps be assigning review resources

@@ -134,6 +135,9 @@
$el = $($i),
params = {},
action = $i.data('action') || info.action;
if (info.params) {
params = info.params;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be written more concisely by putting it inline with the variable declaration above:

params = info.params || {};

@colemanw colemanw merged commit 0b2bcfa into civicrm:master Feb 7, 2018
@colemanw
Copy link
Member

colemanw commented Feb 7, 2018

Makes sense to me. This js does not have any unit tests so the PR test results are irrelevant. But it's a safe change - just introducing a new option and not changing any existing functionality.

@colemanw
Copy link
Member

colemanw commented Feb 7, 2018

Can you submit a PR for the docs update as well please?

@aydun
Copy link
Contributor Author

aydun commented Feb 7, 2018

Doc PR: civicrm/civicrm-dev-docs#475

@mlutfy mlutfy added this to the 4.7.31 milestone Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants