From c2f34ca7d8e0a4ac059a144912e85e8e51c11415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Tome=C4=8Dek?= Date: Fri, 16 Jan 2026 11:03:07 +0100 Subject: [PATCH] forms: setValidationScope side-effect --- forms/cs/validation.texy | 2 +- forms/en/validation.texy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/cs/validation.texy b/forms/cs/validation.texy index 479e12df74..2693c58c8e 100644 --- a/forms/cs/validation.texy +++ b/forms/cs/validation.texy @@ -373,4 +373,4 @@ $form->addSubmit('send5') ->setValidationScope([$form['details']]); // Validuje kontejner details ``` -`setValidationScope` neovlivní [#událost onValidate] u formuláře, která bude zavolána vždy. Událost `onValidate` u kontejneru bude vyvolána pouze pokud je tento kontejner označen pro částečnou validaci. +`setValidationScope` neovlivní [#událost onValidate] u formuláře, která bude zavolána vždy. Událost `onValidate` u kontejneru bude vyvolána pouze pokud je tento kontejner označen pro částečnou validaci. Má však vliv na návratovou hodnotu `getValues`. diff --git a/forms/en/validation.texy b/forms/en/validation.texy index d9a9626cc6..1f5f3c6b7f 100644 --- a/forms/en/validation.texy +++ b/forms/en/validation.texy @@ -373,4 +373,4 @@ $form->addSubmit('send5') ->setValidationScope([$form['details']]); // Validates the 'details' container ``` -`setValidationScope` does not affect the [#Event onValidate] on the form, which will always be called. The `onValidate` event on a container will only be triggered if that container is marked for partial validation. +`setValidationScope` does not affect the [#Event onValidate] on the form, which will always be called. The `onValidate` event on a container will only be triggered if that container is marked for partial validation. It does however affect return value of `getValues`.