[TYPO3-german] Formhandler mit Conditions dreht durch?

Peter Culka p.culka at fonda.at
Thu Jul 25 15:35:36 CEST 2013


Oh gott, ich hab's gefunden
Else kann nicht drinnen sein ... DA F? :/

-----Original Message-----
From: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] On Behalf Of Peter Culka
Sent: Thursday, July 25, 2013 3:24 PM
To: typo3-german at lists.typo3.org
Subject: [TYPO3-german] Formhandler mit Conditions dreht durch?

Hallo an alle,

Ich habe vielleicht auf einen bug gestosen, aber fangen wir mal langsam an:
TYPO3 version 6.1.1
Formhandler version 1.6.0

Ich versuche ein formular zu machen (mehrschrittig), alle schritte in einem file Im schritt 1 ist ein Radiobutton und je nach dem was dort ausgewahlt ist, brauche ich die errorchecks fur ein feld aussetzen.

plugin.Tx_Formhandler.settings.predef.courses_signup {

.
.
.

     if {
          1 {
                conditions.OR1.AND1 = precoursetest=3
                isTrue {
                     1 {
                          validators.1.config.disableErrorCheckFields = precoursetest-additionalinfo
                     }
                } else {
                }
          }
     }
     validators {
          1 {
                class = Validator_Default
                config {
                     fieldConf {
                          kid {
                               errorCheck {
                                     1 = required
                               }
                          }
                          precoursetest {
                               errorCheck {
                                     1 = required
                               }
                          }
                          precoursetest-additionalinfo {
                               errorCheck {
                                     1 = required
                                     2 = minLength
                                     2.value = 2
                               }
                          }
                     }
                }
          }
     }

.
.
.

}

Nun das Problem entsteht - wenn ich im if block alles rauslosche, sind alle errorCheck funktionierend Wenn Ich ins if block das reinschreibe was ich oben angegeben hab, sind alle errorChecks im Validator weg!
Das ist aber nicht alles, falls ich dann im precoursetest field "3" auswahle, bekomm ich einen Fatal Error:

No valid implementation class for component "Tx_Formhandler_" found while building the component object (Class "Tx_Formhandler_" does not exist).
File: /var/www/vhosts/client/httpdocs/typo3conf/ext/formhandler/Classes/Component/Tx_Formhandler_Component_Manager.php(178)
#0 /var/www/vhosts/client/httpdocs/typo3conf/ext/formhandler/Classes/Component/Tx_Formhandler_Component_Manager.php(156): Tx_Formhandler_Component_Manager->createComponentObject('Tx_Formhandler_', Array) #1 /var/www/vhosts/client/httpdocs/typo3conf/ext/formhandler/Classes/Controller/Tx_Formhandler_Controller_Form.php(316): Tx_Formhandler_Component_Manager->getComponent('Tx_Formhandler_') #2 /var/www/vhosts/client/httpdocs/typo3conf/ext/formhandler/Classes/Controller/Tx_Formhandler_Controller_Form.php(165): Tx_Formhandler_Controller_Form->processSubmitted() #3 /var/www/vhosts/client/httpdocs/typo3conf/ext/formhandler/Classes/Controller/Tx_Formhandler_Dispatcher.php(107): Tx_Formhandler_Controller_Form->process() #4 /var/www/vhosts/client/httpdocs/typo3conf/ext/formhandler/pi1/class.tx_formhandler_pi1.php(48): Tx_Formhandler_Dispatcher->main('', Array) #5 [internal function]: tx_formhandler_pi1->main('', Array) #6 /var/www/vhosts/client/httpdocs/_src/typo3_src-6.1.1/typo3/sysex
 t/frontend/Classes/ContentObject/ContentObjectRenderer.php(6438): call_user_func_array(Array, Array) #7 /var/www/vhosts/client/httpdocs/_src/typo3_src-6.1.1/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php(55): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction('tx_formhandler_...', Array, '') #8 /var/www/vhosts/client/httpdocs/_src/typo3_src-6.1.1/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(904): TYPO3\CMS\Frontend\ContentObject\UserContentObject->render(Array) #9 /var/www/vhosts/client/httpdocs/_src/typo3_src-6.1.1/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3461): TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->USER(Array) #10 /var/www/vhosts/client/httpdocs/_src/typo3_src-6.1.1/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php(3401): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process(Array) #11 /var/www/vhosts/client
 /httpdocs/_src/typo3_src-6.1.1/typo3/sysext/cms/tslib/index_ts.php(204): TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript() #12 /var/www/vhosts/client/httpdocs/_src/typo3_src-6.1.1/index.php(41): require('/var/www/vhosts...') #13 {main}

Ich hab mir schon TX_Formhandler_Controller_Form.php angeschaut - da passt alles und die Conditions warden gut geparst.

Hat irgendjemand IRGEND eine erklarung?

Lg,

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


More information about the TYPO3-german mailing list