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

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

		if (isset($_REQUEST['confirm']) && isset($bugDatabase->lists['status'][$newStatus])) {
			$update[0]['action'] = "delete";
			$update[0]['tableName'] = "status";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $selectedStatus;
			$update[1]['action'] = "change";
			$update[1]['tableName'] = "tickets";
			$update[1]['uniqueRow'] = "status";
			$update[1]['rowid'] = $selectedStatus;
			$update[1]['modify'][0]['fieldName'] = "status";
			$update[1]['modify'][0]['fieldValue'] = $newStatus;
			$bugDatabase->alterDb($update);
			header("Location: {$options['baseURL']}?area=admin&action=sedit");
		}
		$statusDesc = htmlentities($bugDatabase->lists['status'][$selectedStatus]['proj_desc']);
		$statusName = htmlentities($bugDatabase->lists['status'][$selectedStatus]['name']);
	}
	
?>
Return current item: BugIn and Ticketing System