-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Servier-Side Validation is not disabled on hidden by condition field. #29
Comments
Thx, seems really a bit strange. Nevertheless I did not recognize an issue on my testsystem. Can you pls give me a hint how to reproduce the issue? |
Hi, But expected behaviour is, that hidden by cond fields should NOT be validated on server-side. |
I had the same problem, but only if I was logged in BE. |
Same here. |
There are some confusing dependencies. powermail_cond 6 requires powermail 6.1. |
I had the same behaviour on my website - took me a while to debug and understand When creating the form, the conditions get attached to the fe_user session Object Oddly enough, when tracing that behaviour it all seems fine in the Database - the session values get transferred from one Session(id) to the next Session(id). Nevertheless all attempts to retrieve the session values via I traced it back to TYPO3\CMS\Core\Authentication\AbstractUserAuthentication class - the powermail_cond values always seem to be NULL As soon as I got a valid FE-Login everything works as it should... The PHP-Session stays the same, so setting and getting the values via $_SESSION['tx_powermail_cond'] works like a charm. Any help is appreciated .. |
I'm on an older version, but the code looks the same. With active After the foreach loop, This behaviour didn't changed with 2f4d0d3#diff-70a09ddce344d5780d1e799fa2eb26f7R64 |
…eIrreWithElementBrowserActive() While iterating over $page->getFields() its cursor is forwarded when ConfigurationUtility::isReplaceIrreWithElementBrowserActive() in \In2code\PowermailCond\Domain\Validator\ConditionAwareValidator::isValidFieldInMandatoryValidation() and thus, fields are skipped. Setup * Page with title,firstname,lastname * Page with submit button Without this, only title and submit button is validated. Relates: in2code-de/powermail_cond#29
…eIrreWithElementBrowserActive() While iterating over $page->getFields() its cursor is forwarded when ConfigurationUtility::isReplaceIrreWithElementBrowserActive() in \In2code\PowermailCond\Domain\Validator\ConditionAwareValidator::isValidFieldInMandatoryValidation() and thus, fields are skipped. Setup * Page with title,firstname,lastname * Page with submit button Without this, only title and submit button is validated. Resolves: in2code-de/powermail_cond#29
With ConfigurationUtility::isReplaceIrreWithElementBrowserActive() $field passed to parent::isValidFieldInMandatoryValidation() is always the last field of the last page. Relates: in2code-de#29
Due to nested iteration over the same ObjectStorage the cursor becomes wrong. This is fixed by using an array. Relates: in2code-de#29
Caused by
2f4d0d3#diff-70a09ddce344d5780d1e799fa2eb26f7R64
the array keys in each loop are the same
The text was updated successfully, but these errors were encountered: