-
-
Notifications
You must be signed in to change notification settings - Fork 825
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-21461: Case Dashlet enhancement #11304
Conversation
f24fac6
to
00b753c
Compare
@@ -530,17 +537,27 @@ public static function getCaseActivityQuery($type = 'upcoming', $userID = NULL, | |||
|
|||
if ($condition) { | |||
// CRM-8749 backwards compatibility - callers of this function expect to start $condition with "AND" | |||
$query .= " WHERE (1) $condition "; | |||
$query .= " WHERE (1) AND $condition "; |
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.
the AND threw an error. see getNextScheduledActivity -- the $condition that's passed to this already has an AND prefixed, resulting in a double AND. actually -- that error occurred in the contact's case tab. removing the AND throws errors in the dashlet. so we need to do some code review to make sure $condition is passed to this function in a consistent way.
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.
Ahh ok, my bad will fix it and will check its usage on other places to avoid regression.
709bdbd
to
dc0adf1
Compare
Jenkins test this please |
<th data-data="manager" data-orderable="false" class="crm-case-manager">{ts}Manager{/ts}</th> | ||
<th data-data="date" cell-class="crm-case-date">{if $list EQ 'upcoming'}{ts}Next Sched.{/ts}{elseif $list EQ 'recent'}{ts}Most Recent{/ts}{/if}</th> | ||
<th data-data="links" data-orderable="false" class="crm-case-links"> </th> | ||
</th> |
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.
closing tag should be "tr"
this looks great. dashlets are much more dynamic and flexible now. @colemanw can you review and merge. |
Code looks great. Merging based on Brian's testing. |
Overview
Before
Case Dashboard:
Case Dashlets:
After
Case Dashboard:
Case Dashlets: