Commit 0d9641c3 authored by Charlie Jacomme's avatar Charlie Jacomme

[conso_base] Fixed stack clean up case

parent 84bcceee
......@@ -183,13 +183,11 @@ function put_note(itself, affiche, idbde, nom, prenom, secondstack,solde,time_ne
var stack_used = stack;
var display_stack_used = display_stack;
if (double_stack_mode) {
if (!isEmpty(stack_button)) {
if (double_stack_mode && secondstack && !isEmpty(stack_button)) {
// Il y avait des boutons dans le stack_button, mais on va utiliser le stack pour des notes. On le vide.
emptyStack(false, true);
emptyStack(false, true);
if (!double_stack_mode)
// On encastre les tests parce que stack_button n'existe pas forcément
if (!isEmpty(stack_button)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment