Hi,
I'm having trouble using the workflow backend and would be great full if
anybody could point me in the right direction (please).
I appreciate that to more experienced users there may be something dumb
that I'm doing.
I have a text file in the workflow folder called class.sn.php which
contains (only) the following.
class SN_Workflow_Backend extends Abstract_Workflow_Backend
{
function canEmailIssue($prj_id, $issue_id, $email)
{
return true;
}
}
According to the Eventum wiki, this should allow anyone to reply to an
email. I have selected for my project to use SN in the workflow
backend, but once selected, I can go into list issues, but if I select
an issue to view from the list I get a blank web page displaying the
following at the top of the page:
class SN_Workflow_Backend extends Abstract_Workflow_Backend { function
canEmailIssue($prj_id, $issue_id, $email) { return true; } }
So I try another one. I've got a file in the Eventum folder called
class.Add_All_To_NL.php. It contains just the following:
class Add_All_To_NL_Workflow_Backend extends Abstract_Workflow_Backend
{
function handleNewEmail($prj_id, $issue_id, $message, $row = FALSE,
$closing = false)
{
$project_details =
Project::getDetails(Issue::getProjectID($issue_id));
$address_not_too_add =
$project_details['prj_outgoing_sender_email'];
if (!empty($row['to'])) {
$to_addresses = Mail_API::getAddressInfo($row['to'], true);
print_r($to_addresses);
foreach ($to_addresses as $address) {
if ($address['email'] == $address_not_too_add) {
continue;
}
Notification::subscribeEmail(Auth::getUserID(),
$issue_id, $address['email'], Notification::getDefaultActions());
}
}
if (!empty($row['cc'])) {
$cc_addresses = Mail_API::getAddressInfo($row['cc'], true);
foreach ($cc_addresses as $address) {
if ($address['email'] == $address_not_too_add) {
continue;
}
Notification::subscribeEmail(Auth::getUserID(),
$issue_id, $address['email'], Notification::getDefaultActions());
}
}
}
}
(which was copied from the wiki and is suppose to add all TO and CC to
the notification list). Again the same thing happens, If I select an
issue from the list then I get a blank web page containing the above
text squashed into 4 lines.
If anybody could point me in the right direction as to why I can't get
either of the above to work I would be very grateful. My apologies if it
is in the wiki and I misunderstood it. I have no problem getting the
example one to work.
Kind regards (and many thanks to anyone who gets me out of this hole),
Steve North
This mail was sent via Mail-SeCure System.