From e16c2c20d2b9fb8a11b9e61b68b8704f8aff45a1 Mon Sep 17 00:00:00 2001 From: Davide Liessi Date: Thu, 2 Apr 2020 22:45:58 +0200 Subject: [PATCH] make embedded subforms honor the choice of key Previously, embedded subforms always used the primary key of the parent table as linking column, regardless of the choice made in "Link between tables". Now `richiediEMBED` follows the same logic as `apri_submask` and the setting is honored. Fixes #6 --- js/scheda.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/js/scheda.js b/js/scheda.js index 666600f..10ccb2a 100644 --- a/js/scheda.js +++ b/js/scheda.js @@ -2285,7 +2285,24 @@ function richiediSUB(){ function richiediEMBED(sm_embed_id){ - var urlSUB= 'sottomaschera.php?oid_parent='+oid+'&pk='+VF.localIDRecord+'&id_submask='+sm_embed_id; + inputs=jQuery('input'); + for(i=0;i