$numChanged++;
                 $leaveController->sendChangedLeaveNotification($obj, true);
             }
         }
     }
     $message = $numChanged > 0 ? "CHANGE_STATUS_SUCCESS" : "";
     $leaveController->redirect($message);
     break;
 case 'Leave_Apply':
     $obj = $leaveRequestsExtractor->parseAddData($_POST);
     $leaveController->setObjLeave($obj);
     try {
         $mes = $leaveController->addLeave();
         $leaveController->redirectToLeaveApplyPage(false, $mes);
     } catch (DuplicateLeaveException $e) {
         $leaveController->displayLeaveInfo(false, $e);
     }
     break;
 case 'Leave_Apply_view':
     $leaveController->displayLeaveInfo();
     break;
 case 'Leave_Apply_Admin_view':
     $leaveController->displayLeaveInfo(true);
     break;
 case 'Leave_Admin_Apply':
     $obj = $leaveRequestsExtractor->parseAddData($_POST, true);
     $leaveController->setObjLeave($obj);
     try {
         $leaveController->addLeave();
         $mes = $leaveController->adminApproveLeave();
         $id = $leaveController->getObjLeave()->getLeaveRequestId();