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

Add warning about APIv4 switch #50

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CRM/Moregreetings/Upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,21 @@ public function upgrade_5001() {
return TRUE;
}


/**
* Make sure users get a warning about the switch to APIv4
*
* @return bool TRUE on success
* @throws Exception
*/
public function upgrade_5002() {
CRM_Core_Session::setStatus(
E::ts('MoreGreetings has switched to APIv4, which means that some tokens might not work any more.') . '<br/><br/>' .
E::ts('An example would be the defunct <code>$individual_prefix</code> token, which can be substituted by the <code>prefix_id:label</code>') . '<br/><br/>'.
E::ts('Make sure you test your greeting templates well before you continue using MoreGreetings.'),
E::ts("Warning"),
'alert', ['expires' => 0]);
return TRUE;
}

}
6 changes: 3 additions & 3 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<url desc="Support">https://github.com/systopia/de.systopia.moregreetings/issues</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2024-09-19</releaseDate>
<version>1.2.0</version>
<develStage>stable</develStage>
<releaseDate></releaseDate>
<version>1.3-dev</version>
<develStage>dev</develStage>
<compatibility>
<ver>5.38</ver>
</compatibility>
Expand Down
Loading