1.8 * @date 02/12/2007 * * A form for updating an issue */ if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); /// It must be included from view.php in mod/tracker } $OUTPUT->box_start('center', '80%', '', '', 'generalbox', 'bugreport'); $issue = $DB->get_record('tracker_issue', array('id' => $issueid)); $issue->reporter = $DB->get_record('user', array('id' => $issue->reportedby)); tracker_loadelementsused($tracker, $elementsused); $enctype = ''; if (tracker_requiresfile($tracker->id)){ $enctype = ' enctype="multipart/form-data" '; } ?>
status < OPEN){ $issue->status = OPEN; $DB->set_field('tracker_issue', 'status', OPEN, array('id' => $issueid)); } ?> > "; echo ""; echo ""; echo ""; } } } ?>
: ticketprefix.$issueid; ?> : id, $issueid); ?>
:
reporter); ?> : datereported); ?>
:
id] = fullname($resolver); } echo html_writer::select($resolversmenu, 'assignedto', @$issue->assignedto); } else { print_string('noresolvers', 'tracker'); echo ''; } ?> : status); ?>
:
: description); if ($usehtmleditor) { echo ''; } else { echo '

'; $OUTPUT->help_icon('textformat', 'moodle'); print_string('formattexttype'); echo ': '; if (empty($form->format)) { $form->format = FORMAT_MOODLE; } echo html_writer::select(format_text_menu(), 'format', $form->format); echo '

'; } ?>
"; echo ""; echo format_string($elementsused[$key]->description); echo ":
"; echo "
"; echo $elementsused[$key]->view(true, $issue->id); echo "
: resolution); if ($usehtmleditor) { echo ''; } else { echo '

'; $OUTPUT->help_icon('textformat', 'moodle'); print_string('formattexttype'); echo ': '; if (empty($form->format)) { $form->format = "MOODLE"; } echo html_writer::select(format_text_menu(), 'resolutionformat', $form->resolutionformat); echo '

'; } ?>
box_end(); ?>