Follow up search card, add a button to select all , cosmetic add qcode in dialog box for contact option

This commit is contained in:
Dany De Bontridder 2020-10-11 18:10:40 +02:00
parent c1b866fa81
commit 650e55364e
3 changed files with 9 additions and 1 deletions

View file

@ -127,6 +127,11 @@ class Card_Multiple
if ( ! $g_user->can_read_action($ag_id)) {
throw new Exception (_("CMCDO01"."Security"));
}
// Retrieve Name, first Name and QCODE
$aIdentity=$cn->get_row("select (select ad_value from fiche_detail where f_id=$1 and ad_id=1) as name ,
(select ad_value from fiche_detail where f_id=$1 and ad_id=32) as first_name ,
(select ad_value from fiche_detail where f_id=$1 and ad_id=23) as qcode ",[$fiche_id]);
// insert new , synchronized
$cn->exec_sql("insert into action_person_option (ap_value,contact_option_ref_id ,action_person_id )
select null,cor_id,$1