Skip to content

Commit

Permalink
Merge pull request #22175 from eileenmcnaughton/smarty3
Browse files Browse the repository at this point in the history
[Smarty variable][Civicase] remove isset
  • Loading branch information
colemanw authored Dec 1, 2021
2 parents 7e042ac + 3c8c56f commit 853a64f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CRM/Case/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ public static function getSearchFieldMetadata() {
*
* @param CRM_Case_Form_Search $form
*/
public static function buildSearchForm(&$form) {
public static function buildSearchForm(&$form): void {
$form->addOptionalQuickFormElement('upcoming');
//validate case configuration.
$configured = CRM_Case_BAO_Case::isCaseConfigured();
$form->assign('notConfigured', !$configured['configured']);
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Case/Form/CaseFilter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td class="crm-contact-form-block-case_status_id crm-inline-edit-field">
{$form.case_status_id.label}<br /> {$form.case_status_id.html}
</td>
{if $accessAllCases && isset($form.upcoming)}
{if $accessAllCases && $form.upcoming}
<td class="crm-case-dashboard-switch-view-buttons">
<br/>
{$form.upcoming.html}&nbsp;{$form.upcoming.label}
Expand Down

0 comments on commit 853a64f

Please sign in to comment.