Skip to content

Commit

Permalink
fix: remove code left for debug
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 5, 2020
1 parent afa2ea3 commit 351a36b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
global $DB;

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

$formFk = PluginFormcreatorForm::getForeignKeyField();
Expand Down
3 changes: 0 additions & 3 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,6 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
if (isset($input['_parameters'])) {
$parameters = $field->getParameters();
foreach ($parameters as $fieldName => $parameter) {
if (false === ($input['_parameters'][$input['fieldtype']][$fieldName])) {
continue;
}
$parameter::import($linker, $input['_parameters'][$input['fieldtype']][$fieldName], $itemId);
}
}
Expand Down
2 changes: 1 addition & 1 deletion inc/questionregex.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
global $DB;

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

$questionFk = PluginFormcreatorQuestion::getForeignKeyField();
Expand Down

0 comments on commit 351a36b

Please sign in to comment.