Permalink
Browse files

Redirect on save

  • Loading branch information...
1 parent b6c7c54 commit 8110d0deae38ae1a1d737effa31bf5e6bba947a5 @CloCkWeRX CloCkWeRX committed Jun 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 public_html/bugs/bug.php
View
@@ -496,7 +496,6 @@
$date = new DateTime($_POST['in']['ts2']);
$time = $date->format("U");
- $bug['modified'] = $time;
}
$query .= " sdesc='" . $dbh->escapeSimple($_POST['in']['sdesc']) . "'," .
@@ -543,6 +542,9 @@
' (bug, email, ts, comment, reporter_name, handle, active) VALUES (?, ?, NOW(), ?, ?, ?, 1)';
$dbh->query($query, array($id, $from, $ncomment, $comment_name, $auth_user->handle));
}
+
+ localRedirect('bug.php?id='.$id);
+ exit;
}
} elseif (isset($_POST['in']) && isset($_POST['preview']) && $edit == 1) {
$ncomment = trim($_POST['ncomment']);

0 comments on commit 8110d0d

Please sign in to comment.