LP#1778521: Reset field transform after adding fields
authorMike Rylander <mrylander@gmail.com>
Wed, 19 Feb 2020 15:36:56 +0000 (10:36 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 21 Feb 2020 15:18:42 +0000 (10:18 -0500)
Prior to this commit, the field transform was carried from field to
field as each was added to a report.  This commit resets the selected
transform to the default "Raw data" after adding a field.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dawn Dale <ddale@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/reporter/template/app.js

index 336a28b..aa5ca37 100644 (file)
@@ -435,6 +435,7 @@ function($scope , $q , $routeParams , $location , $timeout , $window,  egCore ,
             $scope.currentPathLabel,
             $scope.currentPath
         );
+        $scope.selected_transform = null;
         dgrid.refresh();
     }
 
@@ -451,6 +452,7 @@ function($scope , $q , $routeParams , $location , $timeout , $window,  egCore ,
             $scope.currentPath,
             f
         );
+        $scope.selected_transform = null;
         fgrid.refresh();
     }