Commit b1ce2ece05f5ab0a34080950033c0cd5839c6caf

Authored by Nicolás Guarnieri
Exists in master and in 1 other branch develop

Merge branch 'master' into 'master'

Master

See merge request !28
src/js/controllerCisterna.js
... ... @@ -4,7 +4,7 @@ angular.module('focaAbmVehiculo')
4 4 'focaModalService', 'focaBotoneraLateralService', '$timeout', '$window',
5 5 function($scope, focaAbmVehiculoService, $routeParams, $location, $uibModal,
6 6 focaModalService, focaBotoneraLateralService, $timeout, $window) {
7   - $scope.nuevo = ($routeParams.id > 0) ? false : true;
  7 + $scope.nuevo = ($routeParams.idx > -1) ? false : true;
8 8 $scope.editar = false;
9 9 $scope.now = new Date();
10 10 $scope.cisterna = {};
... ... @@ -25,7 +25,7 @@ angular.module('focaAbmVehiculo')
25 25 });
26 26  
27 27 if($routeParams.idx !== -1) {
28   - $scope.cisterna = [$routeParams.idx]
  28 + $scope.cisterna = [$routeParams.idx];
29 29 focaAbmVehiculoService
30 30 .getCisternas($routeParams.idVehiculo)
31 31 .then(function(res) {