--- loncom/interface/londocs.pm	2019/08/16 14:21:43	1.664
+++ loncom/interface/londocs.pm	2019/08/16 14:22:49	1.665
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.664 2019/08/16 14:21:43 raeburn Exp $
+# $Id: londocs.pm,v 1.665 2019/08/16 14:22:49 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2329,7 +2329,9 @@ sub copy_templated_files {
         my @simpleprobqtypes = qw(radio option string essay numerical);
         my $qtype=$srcparms{$srcprefix.'questiontype'};
         if (grep(/^\Q$qtype\E$/,@simpleprobqtypes)) {
-            my %newdata;
+            my %newdata = (
+                $newprefix.'questiontype' => $qtype,
+            );
             foreach my $type (@simpleprobqtypes) {
                 if ($type eq $qtype) {
                     $newdata{"$weightprefix.$type.weight"}=1;