Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Meetin reminder missing link

Meetin reminder missing link 2 months 2 days ago #79353

  • fcorluka
  • fcorluka's Avatar
  • Offline
  • Junior Member
  • Posts: 26
  • Karma: 0
Hi,

I have realized that meeting reminder does not contain link.
Acceptance mail, and assignment mail do.

Not to be lazy, I have searched the google, came up to file:
custom/include/language/en_us.notify_template.html

and modified template:
<!-- BEGIN: MeetingReminder -->
<p>
    Title: {MEETING_SUBJECT}<br />
    When: {MEETING_STARTDATE}<br />
    Location: {MEETING_LOCATION}<br />
    Created By: {MEETING_CREATED_BY}<br />
    {MEETING_PARENT_TYPE}: {MEETING_PARENT_NAME}<br />
    URL is: <a href={URL}>LINK</a><br />   //MY CHANGE
</p>
<p>You may <a href={URL}>review this Meeting</a>.</p>  //MY CHANGE
<!-- END: MeetingReminder -->

However, text is shown but no link. Same code, same line is in assigmend part of template and that is parsed OK.
Then I have tried to modify:
modules/Meetings/Meeting.php

and added
$xtpl->VARS["URL"]= $sugar_config['site_url'].'/index.php?action=DetailView&module=Meetings&record&record='.$meeting->id;
$xtpl->assign("URL", $sugar_config['site_url'].'/index.php?action=DetailView&module=Meetings&record&record='.$meeting->id)

but no help.

Has anyone done it, or knows what else should be changed?

Best regadrs,
Filip

Suite version: 7.9.4
The administrator has disabled public write access.

Meetin reminder missing link 1 month 4 weeks ago #79470

  • ashish@outrightcrm.com
  • ashish@outrightcrm.com's Avatar
  • Offline
  • Elite Member
  • CTO at outright Systems
  • Posts: 191
  • Thank you received: 19
  • Karma: 3
You may need to write
global $sugar_config;
before using it.
The administrator has disabled public write access.

Meetin reminder missing link 1 month 4 weeks ago #79484

  • fcorluka
  • fcorluka's Avatar
  • Offline
  • Junior Member
  • Posts: 26
  • Karma: 0
There is all necessary code in function:
function set_notification_body($xtpl, &$meeting) {
		global $sugar_config;
		global $app_list_strings;
		global $current_user;
		global $timedate;

It seems that either this function is not called when a reminder is set, or the reminder data are populated from somewhere else.
The administrator has disabled public write access.
Time to create page: 0.036 seconds
Powered by Kunena Forum