case 'delete':
        $workorderObject = $workorderHandler->get(Request::getString('id', ''));
        if (1 == Request::getInt('ok', 0)) {
            if (!$GLOBALS['xoopsSecurity']->check()) {
                redirect_header('workorder.php', 3, implode(', ', $GLOBALS['xoopsSecurity']->getErrors()));