X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/22d1ae1aa6bfee6df20dfa9544e14feaecc9fbf4..a30b66472173d3187a419b6d86e3096e5332bc45:/lib/SAMURAI/Permiso.php?ds=sidebyside diff --git a/lib/SAMURAI/Permiso.php b/lib/SAMURAI/Permiso.php index ba96165..a6004e0 100644 --- a/lib/SAMURAI/Permiso.php +++ b/lib/SAMURAI/Permiso.php @@ -232,7 +232,7 @@ class SAMURAI_Permiso { 'desc_permiso' => $this->getDescripcion(), 'responsable' => $this->getResponsable(), ); - return $this->_db->autoExecute('permiso', $datos, DB_AUTOQUERY_INSERT); + return $this->_db->autoExecute('samurai.permiso', $datos, DB_AUTOQUERY_INSERT); } // -X2C @@ -283,7 +283,7 @@ class SAMURAI_Permiso { 'desc_permiso' => $this->getDescripcion(), 'responsable' => $this->getResponsable(), ); - return $this->_db->autoExecute('permiso', $datos, DB_AUTOQUERY_UPDATE, 'id_permiso ='.$this->getId()); + return $this->_db->autoExecute('samurai.permiso', $datos, DB_AUTOQUERY_UPDATE, 'id_permiso ='.$this->getId()); } // -X2C @@ -310,6 +310,7 @@ class SAMURAI_Permiso { $consulta.= $sql['obtener_datos_permiso3']; $tmp[] = $id_sistema; } + $consulta.= $sql['obtener_datos_permiso5']; $dbh = $db->prepare($consulta); $res = $db->execute($dbh, $tmp); while ($re = $res->fetchrow(DB_FETCHMODE_ASSOC)) { @@ -390,4 +391,4 @@ class SAMURAI_Permiso { } // -X2C Class :SAMURAI_Permiso -?> +?> \ No newline at end of file