Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
61505158
Commit
61505158
authored
Oct 01, 2017
by
Carsten Rose
Browse files
#4456 / formModeGlobal=requiredOff - update Manual.rst
parent
f5671fa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
61505158
...
...
@@ -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.
...
...
extension/qfq/qfq/QuickFormQuery.php
View file @
61505158
...
...
@@ -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
===
''
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment