Fix message to not show sometimes
This commit is contained in:
parent
97827f5172
commit
8aebcc45b2
@ -350,9 +350,9 @@ if ($result || empty($id))
|
|||||||
dol_print_error($db, 'Error for calculating graph on key='.$key.' - '.$object->error);
|
dol_print_error($db, 'Error for calculating graph on key='.$key.' - '.$object->error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$mesg = $langs->trans("ChartGenerated");
|
//setEventMessages($langs->trans("ChartGenerated"), null, 'mesgs');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show graphs
|
// Show graphs
|
||||||
@ -390,7 +390,7 @@ if ($result || empty($id))
|
|||||||
{
|
{
|
||||||
$dategenerated=($mesg?'<font class="error">'.$mesg.'</font>':$langs->trans("ChartNotGenerated"));
|
$dategenerated=($mesg?'<font class="error">'.$mesg.'</font>':$langs->trans("ChartNotGenerated"));
|
||||||
}
|
}
|
||||||
$linktoregenerate='<a href="'.$_SERVER["PHP_SELF"].'?id='.(GETPOST('id')?GETPOST('id'):$object->id).((string) $type != ''?'&type='.$type:'').'&action=recalcul&mode='.$mode.'&search_year='.$search_year.'&search_categ='.$search_categ.'">'.img_picto($langs->trans("ReCalculate").' ('.$dategenerated.')', 'refresh').'</a>';
|
$linktoregenerate='<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.(GETPOST('id')?GETPOST('id'):$object->id).((string) $type != ''?'&type='.$type:'').'&action=recalcul&mode='.$mode.'&search_year='.$search_year.'&search_categ='.$search_categ.'">'.img_picto($langs->trans("ReCalculate").' ('.$dategenerated.')', 'refresh').'</a>';
|
||||||
|
|
||||||
// Show graph
|
// Show graph
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user