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

if (isset($_REQUEST['selectedStatus'])) {
	$selectedStatus = intval($_REQUEST['selectedStatus']);
	$formFields = "<input type=\"hidden\" name=\"selectedStatus\" value=\"{$selectedStatus}\" />";

	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 ($value != $bugDatabase->lists['status'][$selectedStatus][$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'] = "status";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $bugDatabase->lists['status'][$selectedStatus]['id'];
			$bugDatabase->alterDb($update);
			$bugDatabase->lists['status'] = $bugDatabase->getStatusList();
			$statusList = $bugDatabase->lists['status'];
			header("Location: {$options['baseURL']}?area=admin&action=sedit");
		}

	}
	$statusName = htmlentities($bugDatabase->lists['status'][$selectedStatus]['name']);
	$statusDesc = htmlentities($bugDatabase->lists['status'][$selectedStatus]['descr']);
}

?>
Return current item: BugIn and Ticketing System