Commit 77c1fff6 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Support.php: add hard coded checkType for FormElement 'annotate'

parent 3dc526dd
......@@ -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.
......
......@@ -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;
}
......
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