| @@ -207,8 +207,9 @@ | ||
| 207 | 207 | 'multipleSelect' => ['path' => 'config->multipleSelect', 'val' => false], |
| 208 | 208 | 'showChip' => ['path' => 'config->showChip', 'val' => false], |
| 209 | 209 | 'selectedOptClearable' => ['path' => 'config->selectedOptClearable', 'val' => true], |
| 210 | 210 | 'searchClearable' => ['path' => 'config->searchClearable', 'val' => true], |
| 211 | + 'showSearch' => ['path' => 'config->showSearch', 'val' => true], | |
| 211 | 212 | 'searchPlaceholder' => ['path' => 'config->searchPlaceholder', 'val' => ''], |
| 212 | 213 | 'activeList' => ['path' => 'config->activeList', 'val' => 0], |
| 213 | 214 | ], |
| 214 | 215 | 'address' => [ |
| @@ -267,9 +268,9 @@ | ||
| 267 | 268 | 'formID' => ['var' => 'formId'], |
| 268 | 269 | 'maxSizeErrMsg' => ['path' => ['err->maxSize->msg', 'err->maxSize->dflt']], |
| 269 | 270 | 'minFileErrMsg' => ['path' => ['err->minFile->msg', 'err->minFile->dflt']], |
| 270 | 271 | 'maxFileErrMsg' => ['path' => ['err->maxFile->msg', 'err->maxFile->dflt']], |
| 271 | - 'assetsURL' => ['val' => BITFORMS_ROOT_URI . '/static/file-upload/'], | |
| 272 | + 'assetsURL' => ['val' => BITFORMS_ROOT_URI . '/static/file-upload'], | |
| 272 | 273 | 'classNames' => ['path' => 'customClasses'], |
| 273 | 274 | 'attributes' => ['path' => 'customAttributes'], |
| 274 | 275 | 'fieldName' => ['path' => 'fieldName'], |
| 275 | 276 | 'contentId' => ['var' => 'contentId'], |
| @@ -282,8 +283,10 @@ | ||
| 282 | 283 | 'minFile' => ['path' => 'config->minFile', 'val' => 0], |
| 283 | 284 | 'maxFile' => ['path' => 'config->maxFile', 'val' => 0], |
| 284 | 285 | 'showSelectStatus' => ['path' => 'config->showSelectStatus', 'val' => false], |
| 285 | 286 | 'fileSelectStatus' => ['path' => 'config->fileSelectStatus', 'val' => 'No File Selected'], |
| 287 | + 'oldFiles' => ['path' => 'config->oldFiles', 'val' => []], | |
| 288 | + 'baseDLURL' => ['path' => 'config->baseDLURL', 'val' => ''], | |
| 286 | 289 | 'fileExistMsg' => ['val' => 'A file already exist'], |
| 287 | 290 | 'showFileList' => ['path' => 'config->showFileList', 'val' => false], |
| 288 | 291 | 'showFilePreview' => ['path' => 'config->showFilePreview', 'val' => false], |
| 289 | 292 | 'showFileSize' => ['path' => 'config->showFileSize', 'val' => false], |
| @@ -382,8 +385,10 @@ | ||
| 382 | 385 | } |
| 383 | 386 | |
| 384 | 387 | public static function validationScriptFileMapping($fieldType) |
| 385 | 388 | { |
| 389 | + // Pro filter callbacks type-hint string; never let null/non-string through. | |
| 390 | + $fieldType = is_string($fieldType) ? $fieldType : ''; | |
| 386 | 391 | $textTypeField = ['text', 'password', 'username', 'color']; |
| 387 | 392 | if (in_array($fieldType, $textTypeField)) { |
| 388 | 393 | $fieldType = 'text'; |
| 389 | 394 | } |