Cool extension!
The only requirement for an action to be picked up by SearchKit is that
'url'
prop).&cids=123,456,789
Is that supported by this extension?
jaapjansma (5db37a44) at 15 Feb 13:11
Update info.xml
jaapjansma (5db37a44) at 15 Feb 13:10
Update info.xml
jaapjansma (ab86acc2) at 15 Feb 13:10
Update CHANGELOG.md
jaapjansma (abf945ac) at 15 Feb 13:09
Update CHANGELOG.md
Thanks!
The redirect link, after a Search Action has been performed from within the case view, does not contain the url parameter cid
which leads to issues when one e.g. wants continue to change the status of the case.
@jaapjansma if you could hint to me, where I can find the redirect link, I am happy to provide a merge request.
Fixes #12
jaapjansma (d73b472d) at 15 Feb 13:08
Merge branch 'FixCaseSummaryRedirect' into 'master'
... and 1 more commit
Thanks for the hint. That did the trick. Just submitted a merge-request. Could you create a new release with the two new merge requests?
Fixes #12
The new option 'Summary' for a case search task has no effect, whether the action is shown on the case view or not. Current behavior: The action is displayed on the case view, independent of the chosen setting for 'Summary'
For the weight: Currently it seems, that the action are sorted by the order, in which the Search Actions have been created and not by the defined weight.
Thanks!
Fixes the issues described in #13
jaapjansma (f221fe94) at 14 Feb 18:06
Merge branch 'FixWeightAndSummary' into 'master'
... and 1 more commit
It might that the function $this->getContactIDs()
gives an array of related contact ids.
No that info is not stored anywhere you have to look it up.
Fixes the issues described in #13
Thanks for the hint Jaap. I looked a bit into the code and to my understanding there is no reference whatsoever to the contact id of the case client at this part of the code. Therefore I would probably simply do a api call to get the contact id of the case client or is this information already stored somewhere, that I overlooked?
The redirect does not contain the Contact ID. It is set here: https://lab.civicrm.org/extensions/searchactiondesigner/-/blob/master/CRM/Searchactiondesigner/Form/Task/Case.php#L22
So probably adding the clients contact id to url at that part of the code will fixes this.