Skip to content

Commit

Permalink
fix(targetproblem): undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 5, 2024
1 parent 1b2aaa2 commit 20dbc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/targetproblem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ public static function import(PluginFormcreatorLinker $linker, array $input = []
$typeName = strtolower(self::getTypeName());
throw new ImportFailureException(sprintf(__('Failed to add or update the %1$s %2$s: It uses a non existent template ', 'formceator'), $typeName, $input['name']));
}
$input['problemtemplates_id'] = $targetTemplate->getID();
}
$input['problemtemplates_id'] = $targetTemplate->getID();

// Add or update
$originalId = $input[$idKey];
Expand Down

0 comments on commit 20dbc1c

Please sign in to comment.