Commit d12b9640 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige obtención de id de entradas en leyenda

parent ef014b8d
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@ define([
		constructor: function(args) {

			this.config = {
				insertInFront: false
				insertInFront: false,
				pathProperty: 'path'
			};

			lang.mixin(this, this.config, args);
@@ -54,6 +55,13 @@ define([

			var itemId = item[this.idProperty];

			if (itemId === undefined && this.pathProperty) {
				var itemPath = item[this.pathProperty];
				if (itemPath) {
					itemId = itemPath.split(this.pathSeparator).pop();
				}
			}

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