Commit 3aca1674 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige bug introducido en adición sin copia

Consultaba un valor indefinido de identificador como origen de la copia,
cuando no se le había definido ninguno, provocando error 404.
parent a47c462b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ define([
				this._emitGet(this.pathVariableId);
			} else if(this.pathVariableId && (this.pathVariableId === "new")) {
				var copySource = this.queryParameters ? this.queryParameters['copy-source'] : null;
				if (copySource) {
				if (copySource != null) {
					this._emitGet(copySource);
				} else {
					this._emitShowForm();
@@ -182,7 +182,7 @@ define([

			if (this.pathVariableId.id === "new") {
				var copySource = this.queryParameters ? this.queryParameters['copy-source'] : null;
				if (copySource !== null) {
				if (copySource != null) {
					this._emitGet(copySource);
				} else {
					this._emitShowForm();