← All changes
|
includes/Core/Migration/FieldsConversionFormate.php
+2
-5
3.3.1
→
2.15.3
View file →
| @@ -167,9 +167,9 @@ | ||
| 167 | 167 | 'customAttributes' => (object)[], |
| 168 | 168 | 'fieldName' => 'file-up', |
| 169 | 169 | 'phHide' => true, |
| 170 | 170 | 'adminLblHide' => true, |
| 171 | - 'prefixIcn' => BITFORMS_ROOT_URI . '/static/file-upload/paperclip.svg', | |
| 171 | + 'prefixIcn' => str_replace('/v1', '', BITFORMS_ASSET_URI) . '/../static/file-upload/paperclip.svg', | |
| 172 | 172 | 'btnTxt' => 'Attach File', |
| 173 | 173 | 'config' => [ |
| 174 | 174 | 'multiple' => false, |
| 175 | 175 | 'allowMaxSize' => true, |
| @@ -310,9 +310,8 @@ | ||
| 310 | 310 | 'config' => [ |
| 311 | 311 | 'selectedOptImage' => false, |
| 312 | 312 | 'selectedOptClearable'=> true, |
| 313 | 313 | 'searchClearable' => true, |
| 314 | - 'showSearch' => true, | |
| 315 | 314 | 'optionIcon' => false, |
| 316 | 315 | 'placeholder' => 'Select an option', |
| 317 | 316 | 'showSearchPh' => true, |
| 318 | 317 | 'searchPlaceholder' => 'Search options..', |
| @@ -437,9 +436,7 @@ | ||
| 437 | 436 | 'removeProperty' => ['options->payIntegID'] |
| 438 | 437 | ], |
| 439 | 438 | ]; |
| 440 | 439 | |
| 441 | - // Unknown field type must not fatal mid-migration (undefined index + | |
| 442 | - // null dereference in the caller would leave form_content half-migrated) | |
| 443 | - return isset($formate[$fieldType]) ? $formate[$fieldType] : null; | |
| 440 | + return $formate[$fieldType]; | |
| 444 | 441 | } |
| 445 | 442 | } |