sigesp 0.9.52-20230813 → 0.9.54-20230904

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7966,10 +7966,8 @@
7966
7966
  * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
7967
7967
  */
7968
7968
  SigespService.prototype.getPersonal = function (tipo, dato) {
7969
- var cadena = '';
7970
- if (dato) {
7971
- cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}";
7972
- }
7969
+ var cadena;
7970
+ dato ? cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}" : cadena = '';
7973
7971
  return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" + tipo + "&cadena", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7974
7972
  if (res.success) {
7975
7973
  res.data = res.data.map(function (e) { return new MPersonal(e); });