/**
  * Create a new servicePack
  */
 public function postAction()
 {
     $data = $this->_helper->requestData(true);
     $data = $this->_helper->filter($data)->blacklist(array('id', 'published', 'lifeCycleId', 'restrictionsId', 'tariffPlanServicesId', 'tariffPlanServices.zonePlanId'));
     if (isset($data['tariffPlanServices']['currency'])) {
         $data['currency'] = $data['tariffPlanServices']['currency'];
     } else {
         if (isset($data['tariffPlanLifeCycle']['currency'])) {
             $data['currency'] = $data['tariffPlanLifeCycle']['currency'];
         }
     }
     // Make sure that operator is not an empty array
     if (isset($data['restrictions']['operator']) && empty($data['restrictions']['operator'])) {
         unset($data['restrictions']['operator']);
     }
     $servicePack = new ServicePackModel($data);
     // Check if it's allowed
     $this->_helper->allowed('create', $servicePack);
     // Create the organization via its service
     $this->_spSrv->create($servicePack);
     // Response with the organization id
     $this->view->data = $servicePack->getId();
 }