Skip to content

Commit ecd0d85

Browse files
committed
fix: remove code left for debug
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 948ddde commit ecd0d85

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

inc/form.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
18641864
global $DB;
18651865

18661866
if (!isset($input['uuid']) && !isset($input['id'])) {
1867-
throw new ImportFailureException('');
1867+
throw new ImportFailureException('UUID or ID is mandatory');
18681868
}
18691869

18701870
$formFk = PluginFormcreatorForm::getForeignKeyField();

inc/question.class.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,6 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
958958
if (isset($input['_parameters'])) {
959959
$parameters = $field->getParameters();
960960
foreach ($parameters as $fieldName => $parameter) {
961-
if (false === ($input['_parameters'][$input['fieldtype']][$fieldName])) {
962-
continue;
963-
}
964961
$parameter::import($linker, $input['_parameters'][$input['fieldtype']][$fieldName], $itemId);
965962
}
966963
}

inc/questionregex.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
120120
global $DB;
121121

122122
if (!isset($input['uuid']) && !isset($input['id'])) {
123-
throw new ImportFailureException('');
123+
throw new ImportFailureException('UUID or ID is mandatory');
124124
}
125125

126126
$questionFk = PluginFormcreatorQuestion::getForeignKeyField();

0 commit comments

Comments
 (0)