--- loncom/interface/londocs.pm 2014/10/14 21:08:14 1.484.2.55 +++ loncom/interface/londocs.pm 2014/10/24 00:25:12 1.484.2.56 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.484.2.55 2014/10/14 21:08:14 raeburn Exp $ +# $Id: londocs.pm,v 1.484.2.56 2014/10/24 00:25:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3826,6 +3826,7 @@ sub new_timebased_suffix { if ($type eq 'paste') { $prefix = $type; $namespace = 'courseeditor'; + $idtype = 'addcode'; } elsif ($type eq 'map') { $prefix = 'docs'; if ($area eq 'supplemental') { @@ -3837,9 +3838,8 @@ sub new_timebased_suffix { $prefix = $type; $namespace = 'templated'; } - $idtype = 'concat'; my ($suffix,$freedlock,$error) = - &Apache::lonnet::get_timebased_id($prefix,'num',$namespace,$dom,$num); + &Apache::lonnet::get_timebased_id($prefix,'num',$namespace,$dom,$num,$idtype); if (!$suffix) { if ($type eq 'paste') { $errtext = &mt('Failed to acquire a unique timestamp-based suffix when adding to the paste buffer.');