minor fix
Bo Daley <[email protected]>
| Newsgroups | gmane.comp.horde.whups |
|---|---|
| Message-ID | <[email protected]> |
this patch fixes a little bug that was preventing new comments from appearing on the ticket details page. thanks! bo. -- Whups mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
sql.php.diff
(text/diff, 1.1 KB)
Index: sql.php
===================================================================
RCS file: /repository/whups/lib/Driver/sql.php,v
retrieving revision 1.118
diff -u -r1.118 sql.php
--- sql.php 4 Aug 2003 02:42:54 -0000 1.118
+++ sql.php 4 Aug 2003 07:45:15 -0000
@@ -260,6 +260,10 @@
return $comment_id;
}
+ // Make the main log entry to make sure the comment is linked
+ // into the log.
+ $this->_updateLog($ticket_id, '', '', '', '', Auth::getAuth(), $comment_id);
+
if ($creator < 0) {
$query = sprintf('INSERT INTO whups_guests (guest_id, guest_email) ' .
' VALUES (%s, %s)',
@@ -803,7 +807,7 @@
$tables = 'whups_logs';
- $fields = array('comment_id', 'ticket_id', 'comment_text');
+ $fields = array('comment_id', 'ticket_id', 'comment_text', 'user_id_creator');
$fields = $this->_prefixTableToColumns('whups_comments', $fields);
$fields .= ', whups_logs.log_timestamp AS timestamp';
$fields .= ', whups_logs.priority_id_to, whups_logs.state_id_to, whups_logs.type_id_to';