Commit 8ed68061 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Controla valores nulos y numéricos en id de fila

Corrige batería de tests unitarios, que fallaban desde hace un tiempo
por culpa de un conflicto de tipos de datos en el módulo Browser.
parent 6009912c
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -145,8 +145,17 @@ define([

		_buttonsInRowAddRow: function(retValue, args) {

			var idProperty = args[0],
				instance = this._rows[idProperty].instance,
			var idProperty = args[0];

			if (!idProperty) {
				return;
			}

			if (typeof idProperty === 'number') {
				idProperty = idProperty.toString();
			}

			var instance = this._rows[idProperty].instance,
				layerId = idProperty.split(this.pathSeparator).pop(),
				dfd = this._dfdChangeButtonClass[layerId];