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
77c1fff6
Commit
77c1fff6
authored
Jan 11, 2018
by
Carsten Rose
Browse files
Support.php: add hard coded checkType for FormElement 'annotate'
parent
3dc526dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/Constants.php
View file @
77c1fff6
...
...
@@ -866,8 +866,7 @@ const FE_FILE_SPLIT = 'fileSplit';
const
FE_FILE_SPLIT_SVG
=
'svg'
;
const
FE_FILE_SPLIT_TABLE_NAME
=
'tableNameSplit'
;
const
FE_IMAGE_SOURCE
=
'imageSource'
;
// On a smartphone opens the camera
const
FE_IMAGE_SOURCE
=
'imageSource'
;
// Image source for a fabric element
const
FE_SQL_VALIDATE
=
'sqlValidate'
;
// Action: Query to validate form load
const
FE_EXPECT_RECORDS
=
'expectRecords'
;
// Action: expected number of rows of FE_SQL_VALIDATE
const
FE_MESSAGE_FAIL
=
'messageFail'
;
// Action: Message to display, if FE_SQL_VALIDATE fails.
...
...
extension/qfq/qfq/helper/Support.php
View file @
77c1fff6
...
...
@@ -756,10 +756,14 @@ class Support {
self
::
setIfNotSet
(
$formElement
,
FE_INPUT_EXTRA_BUTTON_INFO_CLASS
,
$store
->
getVar
(
FE_INPUT_EXTRA_BUTTON_INFO_CLASS
,
STORE_SYSTEM
));
// For specific FE hardcode 'checkType'
switch
(
$formElement
[
FE_TYPE
])
{
case
FE_TYPE_IMAGE_CUT
:
$formElement
[
FE_CHECK_TYPE
]
=
SANITIZE_ALLOW_ALLBUT
;
break
;
case
FE_TYPE_ANNOTATE
:
$formElement
[
FE_CHECK_TYPE
]
=
SANITIZE_ALLOW_ALL
;
break
;
default
:
break
;
}
...
...
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