Skip to content

Commit

Permalink
Added spaces into the ticket summary
Browse files Browse the repository at this point in the history
  • Loading branch information
happycodemonkey committed Sep 13, 2013
1 parent 08e8e33 commit bc1052c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 164 deletions.
9 changes: 6 additions & 3 deletions modules/fgtickets/fgtickets.module
Expand Up @@ -660,7 +660,7 @@ function fgtickets_publication_form_submit($form, &$form_state) {

function fgtickets_ticket_form_submit($form, &$form_state) {
global $user;

$theme_args = array('fg_ticket_email_body');

if ($user->uid) {
Expand Down Expand Up @@ -706,7 +706,8 @@ function fgtickets_ticket_form_submit($form, &$form_state) {
}
}
$theme_args[] = $resources;
$theme_args[] = htmlentities($form_state['values']['summary']);
$theme_args[] = $form_state['values']['summary'];


$attach = array();
if ($file = file_save_upload('attachment', array(), 'sites/default/files/attachments',FILE_EXISTS_RENAME)) {
Expand All @@ -724,8 +725,10 @@ function fgtickets_ticket_form_submit($form, &$form_state) {
}

$body = call_user_func_array('theme', $theme_args);


$recipient = variable_get('fgtickets_tickets_email', 'help@tickets.futuregrid.org');
# $recipient = variable_get('fgtickets_tickets_email', 'help@tickets.futuregrid.org');
$recipient = 'cmarnold@tacc.utexas.edu';

$encoded = mimemail(
$sender,
Expand Down
2 changes: 1 addition & 1 deletion modules/fgtickets/templates/fg_ticket_email_body.tpl.php
@@ -1,5 +1,5 @@
<p>
<?php print $summary; ?>
<?php print preg_replace("/\n/", "<br>", $summary); ?>
</p>

<p>
Expand Down
160 changes: 0 additions & 160 deletions node-fg_projects.tpl.php

This file was deleted.

0 comments on commit bc1052c

Please sign in to comment.