Posted by kato on Thu 4th Jun 13:44 (modification of post by kato view diff)
diff | download | new post
- <?{
- /*
- ** ACCEPT TICKET
- **
- ** Make logged in user the owner
- ** of this ticket
- **
- */
- $action = "accept";
- include("action_header.php");
- $res = $zen->accept_ticket($id, $login_id);
- if( $res ) {
- if( $login_bin ) {
- // if the user has a home bin set, we move the ticket into the user's
- // home bin when it is accepted; to prevent an additional log entry,
- // uncomment the following line and comment the one after it
- //$zen->move_ticket($id, $login_bin, $login_id, "skip_log");
- $zen->move_ticket($id, $login_bin, $login_id);
- }
- $ticket = $zen->get_ticket($id);
- } else {
- }
- $action = null;
- include("$libDir/nav.php");
- $zen->printErrors($errs);
- if( $page_type == 'project' ) {
- include("$templateDir/projectView.php");
- } else {
- include("$templateDir/ticketView.php");
- }
- include("$libDir/footer.php");
- }?>
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.