Skip to content

Commit

Permalink
Merge branch 'release/v3.0.21' into support/v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
enfoqueNativo committed Mar 13, 2018
2 parents 753114e + c431b3c commit eb46c50
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

[CURRENT](https://github.com/SIU-Toba/framework/compare/master...develop)

[3.0.21](https://github.com/SIU-Toba/framework/releases/tag/v3.0.21) (2018-03-13):
- Se agrega conversion via Psr7\str al mensaje proveniente de un error rest
- Se agrega el metodo toba_auditoria_tablas_postgres::get_tablas_triggers_desactivados (credits FMartinez)

[3.0.20](https://github.com/SIU-Toba/framework/releases/tag/v3.0.20) (2018-03-07):
- Se corrige un bug en ef_upload que afectaba su uso en formularios_ml
- Se desactiva el log de WS durante el testing via phpunit
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.20
3.0.21
11 changes: 10 additions & 1 deletion php/modelo/lib/toba_auditoria_tablas_postgres.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ function get_triggers_activos($schema=null)
return $triguers;
}

function get_tablas_triggers_desactivados($schema=null)
{
if (is_null($schema)) {
$schema = $this->schema_origen;
}
$triggers = $this->conexion->get_triggers_schema($schema, 'tauditoria_', 'D');
return aplanar_matriz($triggers, 'tabla');
}

protected function get_triggers_schema($schema)
{
$resultado = array();
Expand Down Expand Up @@ -426,7 +435,7 @@ protected function actualizar_tabla($origen, $schema)
}
}

protected function set_estado_activacion_triggers($tablas, $schema, $estado)
function set_estado_activacion_triggers($tablas, $schema, $estado)
{
$sql = array();
$estado_final = ($estado) ? 'ENABLE' : 'DISABLE';
Expand Down
16 changes: 7 additions & 9 deletions proyectos/toba_referencia/php/servicios/rest/ci_cliente_rest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


use GuzzleHttp\Psr7;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;

Expand Down Expand Up @@ -213,15 +214,12 @@ function evt__put__persona($datos)


protected function manejar_excepcion_request(RequestException $e)
{
/*$msg = $e->getRequest() . "\n";
{
//$msg = $e->getMessage(). "\n";
$msg = Psr7\str($e->getRequest());
if ($e->hasResponse()) {
$msg .= $e->getResponse() . "\n";
}*/

$msg = $e->getMessage(). "\n";
$msg .= $e->getRequest()->getMethod();
$msg .= Psr7\str($e->getResponse()) . "\n";
}
throw new toba_error($msg);
}

Expand Down
5 changes: 3 additions & 2 deletions proyectos/toba_usuarios/php/lib/rest_arai_usuarios.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use GuzzleHttp\Psr7;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;

Expand Down Expand Up @@ -63,10 +64,10 @@ protected function get_cliente_rest()

private function manejar_excepcion_request(RequestException $e)
{
$msg = $e->getMessage() . "\n" . $e->getRequest() . "\n";
$msg = /*$e->getMessage() . "\n" .*/ Psr7\str($e->getRequest()) . "\n";

if ($e->hasResponse()) {
$msg .= $e->getResponse() . "\n";
$msg .= Psr7\str($e->getResponse()) . "\n";
}
throw new toba_error($msg);
}
Expand Down

0 comments on commit eb46c50

Please sign in to comment.