/**
  * @see Form::save()
  */
 public function save()
 {
     parent::save();
     if ($this->sponsorID) {
         $sponsor = new ContestSponsor($this->sponsorID);
     } else {
         $sponsor = ContestSponsor::find($this->contest->contestID, $this->userID, $this->groupID);
     }
     if ($sponsor === null) {
         require_once WCF_DIR . 'lib/data/contest/sponsor/ContestSponsorEditor.class.php';
         $state = $this->contest->enableSponsorCheck ? 'applied' : 'accepted';
         $sponsor = ContestSponsorEditor::create($this->contest->contestID, $this->userID, $this->groupID, $state);
     }
     // save price
     $price = ContestPriceEditor::create($this->contest->contestID, $sponsor->sponsorID, $this->subject, $this->text, $this->secretMessage, $this->attachmentListEditor);
     $this->saved();
     // forward
     HeaderUtil::redirect('index.php?page=ContestPrice&contestID=' . $this->contest->contestID . '&priceID=' . $price->priceID . SID_ARG_2ND_NOT_ENCODED . '#priceObj' . $price->priceID);
     exit;
 }