Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/pre/predit.pre.inc.php
<?php

if (isset($_REQUEST['selectedPriority'])) {
	$selectedPriority = intval($_REQUEST['selectedPriority']);

	$formFields = "<input type=\"hidden\" name=\"selectedPriority\" value=\"{$selectedPriority}\" />";

	if (isset($mod)) {
		$row = 0;
		$update = array();

		$groups = @implode($groups, ",");

		// Upgate the groups if the user is an admin.
		while (list($key, $value) = each($mod)) {
			if (is_array($value))
				$value = implode($value, ",");

			if (stripslashes($value) != $bugDatabase->lists[priority][$selectedPriority][$key]) {
				$update[0]['modify'][$row]['fieldName'] = $key;
				$update[0]['modify'][$row]['fieldValue'] = $bugDatabase->db->qstr($value);
				$row ++;
			}
		}

		if ($row) {
			$update[0]['action'] = "change";
			$update[0]['tableName'] = "priority";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $bugDatabase->lists[priority][$selectedPriority][id];
			$bugDatabase->alterDb($update);
			$bugDatabase->lists[priority] = $bugDatabase->getPriorityList();
			$priorityList = $bugDatabase->lists[priority];
			header("Location: {$options['baseURL']}?area=admin&action=predit");
		}
	
	}
	$priorityName = htmlentities($bugDatabase->lists['priority'][$selectedPriority]['name']);
	$priorityColor = htmlentities($bugDatabase->lists['priority'][$selectedPriority]['color']);
}

?>
Return current item: BugIn and Ticketing System