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:
commit
247605f308
|
@ -1080,7 +1080,7 @@ if ($id_agente) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$agent = db_get_row('tagente', 'id_agente', $id_agente);
|
||||
$agent = db_get_row('tagente', 'id_agente', $id_agente, false, false);
|
||||
if (empty($agent)) {
|
||||
// Close out the page.
|
||||
ui_print_error_message(__('There was a problem loading the agent'));
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
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)) {
|
||||
$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) {
|
||||
return false;
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
function db_get_row($table, $field_search, $condition, $fields=false)
|
||||
function db_get_row($table, $field_search, $condition, $fields=false, $cache=true)
|
||||
{
|
||||
global $config;
|
||||
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
return mysql_db_get_row($table, $field_search, $condition, $fields);
|
||||
return mysql_db_get_row($table, $field_search, $condition, $fields, $cache);
|
||||
|
||||
break;
|
||||
case 'postgresql':
|
||||
|
|
Loading…
Reference in New Issue