diff --git a/layouts/v7/modules/Mobile/simple/Vtiger/js/List.js b/layouts/v7/modules/Mobile/simple/Vtiger/js/List.js index ebc2a504c5f71c7907d55e4243882c2d45413e71..7d0258454a81789e99413f98672134fac1cf5c77 100644 --- a/layouts/v7/modules/Mobile/simple/Vtiger/js/List.js +++ b/layouts/v7/modules/Mobile/simple/Vtiger/js/List.js @@ -20,16 +20,18 @@ mobileapp.controller('VtigerListController', function ($scope, $api, $mdDialog) $scope.moreRecordsExists = false; $scope.nextRecords = []; $scope.showActions = false; + $scope.moduleLabel = $scope.module; // To fetch Module Filters $api('fetchModuleFilters', {module: $scope.module}, function (e, r) { $scope.filters = r.filters; + $scope.moduleLabel = r.moduleLabel; $scope.loadRecords(); }); // To fetch data from service with the given params $scope.loadRecords = function () { - $scope.pageTitle = $scope.module; + $scope.pageTitle = $scope.moduleLabel; $api('listModuleRecords', {module: $scope.module, filterid: $scope.selectedFilter, page: $scope.page, orderBy: $scope.orderBy, sortOrder: $scope.sortOrder}, function (e, r) { $scope.records = r.records; $scope.selectedFilter = r.selectedFilter;