Skip to content

Commit

Permalink
Update 0.3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Clark authored and Ray Clark committed Mar 26, 2015
1 parent c6ba630 commit d448e4f
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,10 @@
$sql[$count][1]="
" ;

//v0.3.12
$count++;
$sql[$count][0]="0.3.12" ;
$sql[$count][1]="
" ;

?>
7 changes: 5 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ Fixed breadcrumbs on multiple files.

v0.3.11
-------
Combind text links with image links.
Combined text links with image links.
Fixed a double notification bug.
Added Issue Name to end of notification.
Added Issue Name to end of notification.

v0.3.12
-------
10 changes: 5 additions & 5 deletions issues_discussPostProccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@
break ;
}

$isTech = isTechnician($_SESSION[$guid]["gibbonPersonID"], $connection2) && !isPersonsIssue($connection2, $issueID, $_SESSION[$guid]["gibbonPersonID"]) || getPermissionValue($connection2, $_SESSION[$guid]["gibbonPersonID"], "resolveIssue");
$isTech = isTechnician($_SESSION[$guid]["gibbonPersonID"], $connection2) && !isPersonsIssue($connection2, $issueID, $_SESSION[$guid]["gibbonPersonID"]);

$message = "A new message has been left for you";
$message = "A new message has been left for you ";
if($isTech) {
$message.= " by the technician working on your issue";
$message.= "by the technician working on your issue";
}
else {
$message.= " by the person who has the issue";
$message.= "by the person who has the issue";
}


$message.="(" . $row["issueName"] . ").";
$message.=" (" . $row["issueName"] . ").";
$personID = 0000000000;
if($isTech) {
$personID = getOwnerOfIssue($connection2, $issueID);
Expand Down
6 changes: 4 additions & 2 deletions issues_discussView.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@
if($array2[0]["technicianID"]==null && (!relatedToIssue($connection2, $_GET["issueID"], $_SESSION[$guid]["gibbonPersonID"]) || getPermissionValue($connection2, $_SESSION[$guid]["gibbonPersonID"], "fullAccess"))) {
print "<tr>";
print "<td class='right'>";
print "<a href='" . $_SESSION[$guid]["absoluteURL"] . "/modules/" . $_SESSION[$guid]["module"] . "/issues_acceptProcess.php?issueID=". $issueID . "'>" . _('Accept');
print "<img title=" . _('Accept ') . "' src='" . $_SESSION[$guid]["absoluteURL"] . "/themes/" . $_SESSION[$guid]["gibbonThemeName"] . "/img/page_new.png'/></a>";
if(getPermissionValue($connection2, $_SESSION[$guid]["gibbonPersonID"], "assignIssue")) { print "<a href='" . $_SESSION[$guid]["absoluteURL"] . "/modules/" . $_SESSION[$guid]["module"] . "/issues_acceptProcess.php?issueID=". $issueID . "'>" . _('Accept');
print "<img title=" . _('Accept ') . "' src='" . $_SESSION[$guid]["absoluteURL"] . "/themes/" . $_SESSION[$guid]["gibbonThemeName"] . "/img/page_new.png'/></a>"; }
if(getPermissionValue($connection2, $_SESSION[$guid]["gibbonPersonID"], "assignIssue")) { print "<a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . $_SESSION[$guid]["module"] . "/issues_assign.php&issueID=". $issueID . "'>" . _('Assign');
print "<img style='margin-left: 5px' title=" . _('Assign ') . "' src='" . $_SESSION[$guid]["absoluteURL"] . "/themes/" . $_SESSION[$guid]["gibbonThemeName"] . "/img/attendance.png'/></a>"; }
print "</td>";
print "</tr>";
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL="issues_view.php" ;
$type="Additional" ;
$category="Other" ;
$version="0.3.11" ;
$version="0.3.12" ;
$author="Adrien Tremblay & Ray Clark" ;
$url="https://github.com/raynichc/helpdesk" ;

Expand Down
2 changes: 1 addition & 1 deletion moduleFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function notifyTechnican($connection2, $guid, $issueID, $name) {
}

while($row = $result->fetch()) {
setNotification($connection2, $guid, $row["gibbonPersonID"], "A new issue has been added(" . $name . ").", "Help Desk", "/index.php?q=/modules/Help Desk/issues_discussView.php&issueID=" . $issueID);
if($row["gibbonPersonID"] != $_SESSION[$guid]["gibbonPersonID"]) setNotification($connection2, $guid, $row["gibbonPersonID"], "A new issue has been added (" . $name . ").", "Help Desk", "/index.php?q=/modules/Help Desk/issues_discussView.php&issueID=" . $issueID);
}
}

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Sets version information
*/
$moduleVersion="0.3.11" ;
$moduleVersion="0.3.12" ;

/*
*/
Expand Down

0 comments on commit d448e4f

Please sign in to comment.