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

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

		if (isset($_REQUEST['confirm']) && isset($bugDatabase->lists['category'][intval($_REQUEST['newCategory'])])) {
			$update[0]['action'] = "delete";
			$update[0]['tableName'] = "category";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $selectedCategory;
			$update[1]['action'] = "change";
			$update[1]['tableName'] = "tickets";
			$update[1]['uniqueRow'] = "category";
			$update[1]['rowid'] = $selectedCategory;
			$update[1]['modify'][0]['fieldName'] = "category";
			$update[1]['modify'][0]['fieldValue'] = intval($_REQUEST['newCategory']);
			$bugDatabase->alterDb($update);
			header("Location: {$options['baseURL']}?area=admin&action=cedit");
		}
		$categoryName = htmlentities($bugDatabase->lists['category'][$selectedCategory]['name']);
	}

?>
Return current item: BugIn and Ticketing System