// get input fields from modules
- $columns = getUploadColumns($type->getScope(), $selectedModules);
+ $columns = getUploadColumns($type, $selectedModules);
// read input file
$handle = fopen ($_FILES['inputfile']['tmp_name'], "r");
if (($head = fgetcsv($handle, 2000)) !== false ) { // head row
diff --git a/lam/templates/upload/masscreate.php b/lam/templates/upload/masscreate.php
index e6e721a8..96505966 100644
--- a/lam/templates/upload/masscreate.php
+++ b/lam/templates/upload/masscreate.php
@@ -260,7 +260,7 @@ function showMainPage($type, $selectedModules) {
$scope = $type->getScope();
echo '';
// get input fields from modules
- $columns = getUploadColumns($scope, $selectedModules);
+ $columns = getUploadColumns($type, $selectedModules);
$modules = array_keys($columns);
echo "