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

Corrige copia de activity, project y program

Detecta nuevamente las rutas de copia de registro, funcionalidad rota
desde junio de 2016. A causa de este fallo, las copias se comportaban
como ediciones.

Limpia correctamente las propiedades identificativas de estos registros,
y a todos los niveles necesarios. Esto nunca estuvo funcionando
correctamente, pero quedó enmascarado por el problema anterior.
parent 2111eed4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ define([

			var item = response.data;

			if (this.getOwnChannel().indexOf("/add/") > -1) {
			if (this.getOwnChannel().indexOf('add/') !== -1) {
				this._cleanNotDesiredProps(item);
			}

+3 −1
Original line number Diff line number Diff line
@@ -40,7 +40,9 @@ define([

			this.config = {
				target: redmicConfig.services.activity,
				propsToClean: ["code", "id"]
				propsToClean: [
					'code', 'id', 'contacts.{i}.id', 'organisations.{i}.id', 'documents.{i}.id', 'platforms.{i}.id'
				]
			};

			lang.mixin(this, this.config, args);
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ define([

			this.config = {
				target: redmicConfig.services.program,
				propsToClean: ["code", "id"]
				propsToClean: ['code', 'id', 'contacts.{i}.id', 'organisations.{i}.id', 'documents.{i}.id']
			};

			lang.mixin(this, this.config, args);
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ define([

			this.config = {
				target: redmicConfig.services.project,
				propsToClean: ["code", "id"]
				propsToClean: ['code', 'id', 'contacts.{i}.id', 'organisations.{i}.id', 'documents.{i}.id']
			};

			lang.mixin(this, this.config, args);