From 06d51c0abbabbc85f85d34dbf0c624cb3b325635 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 4 Feb 2021 15:51:51 +0100 Subject: [PATCH] Bug = if double click on a card returns nothing --- include/ajax/ajax_card.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php index 9db37baeb..809ac727e 100644 --- a/include/ajax/ajax_card.php +++ b/include/ajax/ajax_card.php @@ -113,7 +113,12 @@ case 'dc': $qcode=$http->request("qcode","string",false); // if there is no qcode then try to find it thanks the card id if ( $qcode == false ){ - $f->id=$http->get("f_id","number"); + $f->id=$http->get("f_id","number","0"); + if ( $f->id==0) { + $html=HtmlInput::title_box(_("Fiche"), $ctl,"close","","y"); + $html.='

'._('Aucune fiche demandée').'

'; + break; + } $qcode=$f->get_quick_code(); } else { $f->get_by_qcode($qcode);