Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 18065)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 18562)
@@ -209,5 +209,6 @@
 # Command to update the database
 $command  = "$dettool -addstacked";
-$command .= " -det_id $det_id -iteration $iter";
+$command .= " -det_id $det_id";
+$command .= " -iteration $iter";
 $command .= " -class_id $class_id";
 $command .= " -uri $outputStack";
@@ -243,4 +244,5 @@
         $command .= " -iteration $iter";
         $command .= " -class_id $class_id";
+	# XXX EAM : we should add this to the db : $command .= " -path_base $outroot";
         $command .= " -code $exit_code";
         $command .= " -dbname $dbname" if defined $dbname;
