some fixes for the real version
--HG-- branch : quitta-gsoc-2013
This commit is contained in:
parent
9362db15c2
commit
46114b65b3
4 changed files with 5 additions and 6 deletions
|
@ -81,7 +81,7 @@ class Helpers{
|
|||
if ( !file_exists( $value ) ){
|
||||
//echo $value;
|
||||
print($value);
|
||||
drupal_mkdir($value);
|
||||
mkdir($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,11 +13,11 @@ class Mail_Handler{
|
|||
|
||||
|
||||
public static function send_ticketing_mail($receiver, $ticketObj, $content, $type, $sender = 0) {
|
||||
global $MAIL_LOG_PATH;
|
||||
error_log("Receiver: {$receiver}, content: {$content}, type: {$type}, SendingId: {$sender} \n", 3, $MAIL_LOG_PATH);
|
||||
|
||||
global $TICKET_MAILING_SUPPORT;
|
||||
if($TICKET_MAILING_SUPPORT){
|
||||
|
||||
global $MAIL_LOG_PATH;
|
||||
error_log("Receiver: {$receiver}, content: {$content}, type: {$type}, SendingId: {$sender} \n", 3, $MAIL_LOG_PATH);
|
||||
if($sender == 0){
|
||||
//if it is not forwarded (==public == which returns 0) then make it NULL which is needed to be placed in the DB.
|
||||
$sender = NULL;
|
||||
|
|
|
@ -87,7 +87,7 @@ class Ticket{
|
|||
|
||||
//create the new ticket!
|
||||
$ticket = new Ticket();
|
||||
$values = array("Title" => $title, "Status"=> 1, "Queue"=> 0, "Ticket_Category" => $category, "Author" => $author, "Priority" => 0);
|
||||
$values = array("Title" => $title, "Timestamp"=>0, "Status"=> 1, "Queue"=> 0, "Ticket_Category" => $category, "Author" => $author, "Priority" => 0);
|
||||
$ticket->set($values);
|
||||
$ticket->create();
|
||||
$ticket_id = $ticket->getTId();
|
||||
|
|
|
@ -42,7 +42,6 @@ class Ticket_Log{
|
|||
$instanceLog->setAuthor($instanceAuthor);
|
||||
$instanceLog->setTicket($ticket_id);
|
||||
$instanceLog->setQuery($log['Query']);
|
||||
|
||||
$result[] = $instanceLog;
|
||||
}
|
||||
return $result;
|
||||
|
|
Loading…
Reference in a new issue