[TYPO3-mvc] fluid f:form in backend

Sebastian Schreiber me at schreibersebastian.de
Wed Feb 15 09:23:26 CET 2012


by hidden i mean set to hidden.
In your backend list you can see hidden elements anyway.

Do you receive an empty accreditation or do you get at least the uid with
accreditation->getUid()?

Could you please post your form template for me, so i can have a close look.

Am 15.02.2012 09:20, schrieb Johannes C. Schulz - EnzephaloN IT-Solutions:
> Hello Sebastian
> No it isn't. I also can see it in the list.
> 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:18
> An: TYPO3 v4 MVC project
> Betreff: Re: [TYPO3-mvc] fluid f:form in backend
>
> Hi Johannes,
> is your accreditation maybe hidden?
>
>
>
> Am 15.02.2012 09:11, schrieb Johannes C. Schulz - EnzephaloN IT-Solutions:
>> 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-typo3v4m
>> vc
>>
>>
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4m
>> vc
>
> --
> 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
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


-- 
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



More information about the TYPO3-project-typo3v4mvc mailing list