-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
CRM-20332 Added support for third column of actions list to be modifi… #10046
Conversation
@monishdeb could you please QA this? |
sure |
@monishdeb you might be able to trade QA on this with @jitendrapurohit who has a few things awaiting QA I believe. Based on a quick look at the code I do think we should try not to be deriving the urls from the smarty variables -ie $userRecordUrl = CRM_Core_Config::singleton()->userSystem->getUserRecordUrl($cid); Question - won't this break things for people who are already overriding existing actions? Perhaps instead of putting more layers into the menu you need to add some fields to the items in the array - since I assume you are using the layers to denote which column to use? |
@eileenmcnaughton I have now changed the function to prevent modification of the original array. @monishdeb could you please QA or assign to someone appropriate for QA? Thanks! |
@jitendrapurohit could you please QA this PR? |
CRM/Contact/BAO/Contact.php
Outdated
'key' => 'dashboard', | ||
'tab' => 'dashboard', | ||
'class' => 'dashboard', | ||
'href' => CRM_Utils_System::url('civicrm/user', |
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 realise this drupal-specific method was already in use, but, could you add a todo suggesting it be derived in a CMS-based way similar to CRM_Core_Config::singleton()->userSystem->getUserRecordUrl($contactId), to make it clear that it's a short-cut
…ed by hook summaryActions ---------------------------------------- * CRM-20332: Refactor summaryActions hook to allow user-defined actions in third column https://issues.civicrm.org/jira/browse/CRM-20332
---------------------------------------- * CRM-20332: Refactor summaryActions hook to allow user-defined actions in third column https://issues.civicrm.org/jira/browse/CRM-20332
@eileenmcnaughton I have updated the PR, ready for QA |
Checked the hook by inserting menu from |
@eileenmcnaughton can you merge the PR as @jitendrapurohit has approved the changes. Thanks |
@Edzelopez This PR appears to cause CRM-20467 PHP notices on contact search for ACL'd user due to use of undefined $values in checkUserMenuPermissions(). |
Sorry about that @davejenx, it was a typo that was introduced in an effort to generalize code which has been fixed by @monishdeb here |
@Edzelopez Thanks, confirmed that #10243 fixes it. |
…ed by hook summaryActions
https://issues.civicrm.org/jira/browse/CRM-20332