-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Enotice fix #21636
Conversation
(Standard links)
|
@@ -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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.