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

Corrige bug de selección en formato antiguo

parent 9edb07fd
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -145,14 +145,19 @@ define([

		_getDataToSave: function(actionName, req) {

			var action = this.actions[actionName],
			var target = req.target,
				action = this.actions[actionName],
				selectionIds = this._getSelectionIds(),
				selectionId = selectionIds[req.target],
				selectionId = selectionIds[target],
				dataToSave = this._getDataToSaveInRightFormat(action, req);

			dataToSave.omitSuccessNotification = true;
			if (selectionId) {
				if (this._isSettingsSelectionFormat(target)) {
					dataToSave.id = selectionId;
				} else {
					dataToSave.data.id = selectionId;
				}
			}

			return dataToSave;