Commit 61505158 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#4456 / formModeGlobal=requiredOff - update Manual.rst

parent f5671fa6
......@@ -1992,10 +1992,10 @@ Optional it might be defined via *Form.parameter* ::
mode=readonly|requiredOff
* `readonly`: all `FormElement`s of the whole form are temporarily in `readonly` mode. This is a fast way to use an
* `readonly`: all `FormElement` of the whole form are temporarily in `readonly` mode. This is a fast way to use an
existing *Form* just to display the form data, without a possibility for the user to change any data of the form.
* `requiredOff`: all `FormElement`s of the whole, with `mode=required`, will temporarily switch to `mode=show`. In this
* `requiredOff`: all `FormElement` of the whole, with `mode=required`, will temporarily switch to `mode=show`. In this
mode, the user might save the form without providing all necessary data. Later on, when application logic requires a
final submit, this mode is not used any longer (call the form as regular without the 'formModeGlobal' parameter) and
the form can only be saved with all data given.
......
......@@ -1018,10 +1018,12 @@ class QuickFormQuery {
$sipArray = $this->store->getStore(STORE_SIP);
// Check: requiredParameter: '' or 'form' or 'form,grId' or 'form #formname for form,grId'
$requiredParameter = ($r > 0) ? $this->formSpec[F_REQUIRED_PARAMETER_EDIT] : $this->formSpec[F_REQUIRED_PARAMETER_NEW];
$param = explode(',', $requiredParameter);
$requiredParameterArr = explode('#', $requiredParameter, 2);
$param = explode(',', $requiredParameterArr[0]);
foreach ($param AS $name) {
$name = explode('#', $name, 2);
$name = trim($name[0]);
if ($name === '') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment