21 Posts
LPO PACA
1 year ago
1
Topic

Hi, 

I am using the $config['pk'] parameter on the code pack extension. 

Unfortunately, the ID returned to the first record is always 0. To the second record the ID is correct. 

Could you confirm if this is normal operation ?

I would like the ID returned on the first save to be the correct one.

Tanks for your help !

Joomla 3.10.11 et Seblod 3.25

Get a Book for SEBLOD
21 Posts
LPO PACA
1 year ago
0
Level 1

With code pack extension, you must use the afterStore function and not beforeStore to retrieve the ID

$numinscrit =$config['pk']; 
JCckDevField::updateValue( 'afterStore', 'inscrip_pins_cembro_num_inscript_new', $numinscrit, $fields,

Get a VIP membership