Hey there,
I trying to save the joomla user id with calc element to the database.
This is the script I use and it works fine.
$host_id = $data["events___host_id"];
if(empty($host_id)){
$host_id ={$my->id}*1;
}
return $host_id;
But if an admin try to edit the form and click on submitbutton, the form save the id of the admin instead the user-id which was saved before.
Do you have an idea how to fix it?
I trying to save the joomla user id with calc element to the database.
This is the script I use and it works fine.
$host_id = $data["events___host_id"];
if(empty($host_id)){
$host_id ={$my->id}*1;
}
return $host_id;
But if an admin try to edit the form and click on submitbutton, the form save the id of the admin instead the user-id which was saved before.
Do you have an idea how to fix it?