Skip to content
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

Smarty warnings on Manage Case #21002

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Aug 3, 2021

Overview

Some smarty warnings on Manage Case.

Before

  • Notice: Undefined index: hookCaseSummary in include() (line 112 of .../templates_c/en_US/%%64/643/643EC55F%%CaseView.tpl.php).
  • Notice: Undefined index: relId in include() (line 231 of .../templates_c/en_US/%%64/643/643EC55F%%CaseView.tpl.php).

After

There's still some more if you have other config like tags, but these are the stock ones.

Technical Details

$relId is mildly interesting. I think it was a mistake when it was added here civicrm/civicrm-svn@8733a55#diff-32e9cc54f42fb47188c658534516a573994fca84ba72f41a11f21261b412f610R174 (it doesn't autoexpand - search the page for CaseView.tpl and then click on Load Diff). Even if the variable were being used in scope, it doesn't make sense to compare $relId to 'client' in the table header because it's a per-row variable (look just down below that at line 179). They probably just copy/pasted from line 190.

Comments

@civibot civibot bot added the master label Aug 3, 2021
@civibot
Copy link

civibot bot commented Aug 3, 2021

(Standard links)

@seamuslee001 seamuslee001 merged commit ab20115 into civicrm:master Aug 3, 2021
@demeritcowboy demeritcowboy deleted the smarty-managecase branch August 3, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants