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

Enotice fix #21636

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Enotice fix #21636

merged 1 commit into from
Sep 27, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

No description provided.

@civibot
Copy link

civibot bot commented Sep 27, 2021

(Standard links)

@civibot civibot bot added the master label Sep 27, 2021
@@ -44,7 +44,7 @@
}

var dataUrl = {/literal}"{crmURL p='civicrm/case/addToCase' q='reset=1' h=0}"{literal};
dataUrl += '&activityId=' + activityID + '&caseId=' + currentCaseId + '&cid=' + {/literal}"{$contactID}"{literal} + '&fileOnCaseAction=' + action;
dataUrl += '&activityId=' + activityID + '&caseId=' + currentCaseId + '&cid=' + {/literal}"{if !empty($contactID)}{$contactID}{/if}'"{literal} + '&fileOnCaseAction=' + action;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this cid= feature works the same way it used to. Maybe when the case dropdown was changed to an entityref? It's supposed to make it default the case dropdown to one of the contact's cases. It doesn't seem to do anything currently whether it's set or not.

But it doesn't change the PR - sometimes it is set and sometimes (legitimately) not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@demeritcowboy yeah - I had a feeling this change didn't get made before because of some complexity & the hope for a better fix

Copy link
Contributor

Choose a reason for hiding this comment

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

It was bugging me so I looked closer. It's two things: An extra apostrophe got added here, and also in the typical situation this is populated, it would only have a default case if the contact has multiple cases.

Copy link
Contributor

Choose a reason for hiding this comment

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

So the feature does work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's a good thing

@demeritcowboy demeritcowboy merged commit fec18e1 into civicrm:master Sep 27, 2021
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.

2 participants