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

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

		if (isset($_REQUEST['confirm'])) {
			$confirm = 1;
			$update[0]['action'] = "delete";
			$update[0]['tableName'] = "priority";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $selectedPriority;
			$update[1]['action'] = "change";
			$update[1]['tableName'] = "tickets";
			$update[1]['uniqueRow'] = "priority";
			$update[1]['rowid'] = $selectedPriority;
			$update[1]['modify'][0]['fieldName'] = "priority";
			$update[1]['modify'][0]['fieldValue'] = $newPriority;
			$bugDatabase->alterDb($update);
		}
		$priorityDesc = htmlentities($bugDatabase->lists['priority'][$selectedPriority]['proj_desc']);
		$priorityName = htmlentities($bugDatabase->lists['priority'][$selectedPriority]['name']);
	}
	
?>
Return current item: BugIn and Ticketing System