Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
8e1e30a4
Commit
8e1e30a4
authored
Feb 09, 2018
by
Elias Villiger
Browse files
Merge branch 'master' into 5318-sendmail-parameters-speaking-word
parents
32569390
2393562a
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
8e1e30a4
...
...
@@ -3177,7 +3177,6 @@ abstract class AbstractBuildForm {
// 'maxLength' needs an upper 'L': naming convention for DB tables!
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
'size'
,
'maxLength'
]);
$attribute
.
=
Support
::
doAttribute
(
'value'
,
htmlentities
(
$value
),
false
);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
F_FE_DATA_PATTERN_ERROR
,
F_FE_DATA_REQUIRED_ERROR
,
F_FE_DATA_MATCH_ERROR
,
F_FE_DATA_ERROR
]);
if
(
$formElement
[
FE_PLACEHOLDER
]
==
''
)
{
$timePattern
=
(
$formElement
[
FE_SHOW_SECONDS
]
==
1
)
?
'hh:mm:ss'
:
'hh:mm'
;
...
...
@@ -3198,6 +3197,10 @@ abstract class AbstractBuildForm {
$formElement
[
FE_PLACEHOLDER
]
=
$placeholder
;
}
if
(
$formElement
[
F_FE_DATA_PATTERN_ERROR
]
==
''
)
$formElement
[
F_FE_DATA_PATTERN_ERROR
]
=
"Please match this format:
$placeholder
"
;
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
F_FE_DATA_PATTERN_ERROR
,
F_FE_DATA_REQUIRED_ERROR
,
F_FE_DATA_MATCH_ERROR
,
F_FE_DATA_ERROR
]);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
FE_INPUT_AUTOCOMPLETE
,
'autofocus'
,
'placeholder'
]);
$attribute
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attribute
.
=
Support
::
doAttribute
(
'title'
,
$formElement
[
FE_TOOLTIP
]);
...
...
extension/qfq/qfq/helper/Support.php
View file @
8e1e30a4
...
...
@@ -798,6 +798,8 @@ class Support {
}
self
::
setIfNotSet
(
$formElement
,
FE_DECIMAL_FORMAT
);
self
::
setIfNotSet
(
$formElement
,
F_FE_DATA_PATTERN_ERROR
);
return
$formElement
;
}
...
...
Write
Preview
Supports
Markdown
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