[TYPO3-mvc] fluid f:form in backend

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Wed Feb 15 09:11:05 CET 2012


I recieve an empty accreditation-object. So nothing more happens, just the
redirect to the list-action. 
Here the complete action:
/**
	 * saves an edited accreditation and sends email
	 * 
	 * @param Tx_PsoaAccredit_Domain_Model_Accreditation $accreditation
	 */
	public function
saveeditedAction(Tx_PsoaAccredit_Domain_Model_Accreditation $accreditation){
		if($accredtitation->getAccepted() == 0){
			$accreditation->setDenied(1);
		}else{
	
$this->accreditationRepository->update($accreditation);
			$persons = $this->request->getArgument('person');
			foreach ($persons as $aid => $person) {
				$person['aid'] = $aid;
				$personObject =
$this->personRepository->findByAid($aid);
				if($personObject->getDenied() != 1)
$personObject->setAccepted(1);
	
$personObject->setExchangeticket($person['exchangeticket']);
	
$personObject->setPassport($person['passport']);
				if($person['delete']!=NULL)
$accreditation->remove($personObject);
			}
		}
		$this->flashMessageContainer->add('Your Accreditation was
updated.');
		//#### SEND EMAIL ####
		$this->notify($accreditation, 'processed');
		$this->view->assign('data', $accreditation);
		redirect('index');
	}

Best regards
Johannes


-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Sebastian Schreiber
Gesendet: Mittwoch, 15. Februar 2012 09:09
An: TYPO3 v4 MVC project
Betreff: Re: [TYPO3-mvc] fluid f:form in backend

Hi Johannes,
So what do you receive in your action, if you click on submit of the form?


Am 15.02.2012 09:07, schrieb Johannes C. Schulz - EnzephaloN IT-Solutions:
> Hello
> Yes, the hidden input is there and correct:
> <input type="hidden"
> name="tx_psoaaccredit_web_psoaaccreditmodule[accreditation][__identity]"
> value="72"/>
> The annotation of the backend-controller-action:
> /**
>   * saves an edited accreditation and sends email
>   *
>   * @param Tx_PsoaAccredit_Domain_Model_Accreditation $accreditation
>   */
> public function 
> saveeditedAction(Tx_PsoaAccredit_Domain_Model_Accreditation
> $accreditation){
>
> Best regards
> Johannes
>
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
> [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag 
> von Sebastian Schreiber
> Gesendet: Mittwoch, 15. Februar 2012 08:58
> An: TYPO3 v4 MVC project
> Betreff: Re: [TYPO3-mvc] fluid f:form in backend
>
> Am 15.02.2012 08:12, schrieb Johannes C. Schulz - EnzephaloN IT-Solutions:
>> tx_psoaaccredit_web_psoaaccreditmod
>> ule
> Have a look in the source code, you should find something like:
> <input type="hidden"
> name="tx_psoaaccredit_web_psoaaccreditmodule[accreditation][__identity]"
> value="###UID_OF_ACCREDITATION###" />
>
> Did you add the annotation to your Controller-Action?
>
>
>


--
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675

_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc




More information about the TYPO3-project-typo3v4mvc mailing list