Merge branch 'ent-3664-Al_aplicar_un_cambio_en_un_agente_se_muestra_que_se_ha_realizado_con_exito_pero_no_actualiza_campos_a_primera_vista' into 'develop'

Eliminated the cache when update agents

See merge request artica/pandorafms!2242
This commit is contained in:
Daniel Rodriguez 2019-05-08 12:50:40 +02:00
commit 247605f308
3 changed files with 5 additions and 5 deletions

View File

@ -1080,7 +1080,7 @@ if ($id_agente) {
exit; exit;
} }
$agent = db_get_row('tagente', 'id_agente', $id_agente); $agent = db_get_row('tagente', 'id_agente', $id_agente, false, false);
if (empty($agent)) { if (empty($agent)) {
// Close out the page. // Close out the page.
ui_print_error_message(__('There was a problem loading the agent')); ui_print_error_message(__('There was a problem loading the agent'));

View File

@ -205,7 +205,7 @@ function mysql_db_get_value($field, $table, $field_search=1, $condition=1, $sear
* *
* @return mixed The first row of a database query or false. * @return mixed The first row of a database query or false.
*/ */
function mysql_db_get_row($table, $field_search, $condition, $fields=false) function mysql_db_get_row($table, $field_search, $condition, $fields=false, $cache=true)
{ {
if (empty($fields)) { if (empty($fields)) {
$fields = '*'; $fields = '*';
@ -243,7 +243,7 @@ function mysql_db_get_row($table, $field_search, $condition, $fields=false)
); );
} }
$result = db_get_all_rows_sql($sql); $result = db_get_all_rows_sql($sql, false, $cache);
if ($result === false) { if ($result === false) {
return false; return false;

View File

@ -421,13 +421,13 @@ function db_get_row_sql($sql, $search_history_db=false)
* *
* @return mixed The first row of a database query or false. * @return mixed The first row of a database query or false.
*/ */
function db_get_row($table, $field_search, $condition, $fields=false) function db_get_row($table, $field_search, $condition, $fields=false, $cache=true)
{ {
global $config; global $config;
switch ($config['dbtype']) { switch ($config['dbtype']) {
case 'mysql': case 'mysql':
return mysql_db_get_row($table, $field_search, $condition, $fields); return mysql_db_get_row($table, $field_search, $condition, $fields, $cache);
break; break;
case 'postgresql': case 'postgresql':