Former working Form Plugin "suddenly" doesn't work

burghard

Member
Joomla 3.10, Fabrik 3.10 (update: with update Fabrik from Github in may 2023)
I have a form plug-in PHP(onBeforeStore) with the code:

$mitglied = (int)$formModel->formData['arbeitsdienste___mitglieder_id_raw'];

if ($mitglied == 1) {
$mydb= FabrikWorker::getDbo(false, 2);
$mydb->setQuery("SELECT id from `mv_mitglieder` where owner=" . JFactory::getUser()->get('id') );

$mitglied = $mydb->loadResult();

$formModel->updateFormData('arbeitsdienste___mitglieder_id', $mitglied, true);
$formModel->updateFormData('arbeitsdienste___mitglieder_id_changed', '1', true);
}

It should fill in the id of the current user in a readonly field, when the user wants to store.
Latest after switching to PHP 8.0 it doesn't work. It tells that the value of the mitglieder_id must not be empty. Any idea?
 
Last edited:
Running php8 you must update from F3 GitHub, original Fabrik3.10 is not php8 ready. (As always: backup before).

If this doesn't help debug your code with var_dump or jdump extension to see what you get.

PS: J!3/F3 will reach their End of Live in August.
 
Running php8 you must update from F3 GitHub, original Fabrik3.10 is not php8 ready. (As always: backup before).

If this doesn't help debug your code with var_dump or jdump extension to see what you get.

PS: J!3/F3 will reach their End of Live in August.
Thank you for your reply. I updated from GitHub on may this year (2023). I edited this in my original post. May be you did not see it?

Does the GitHub version of F3 from may 23 contains all the changes?
 
Back
Top