Hello,
what I need to do:
1. Manager fills in form with multiple employee email-addresses
2. Save manager contact data to #__cf_company
3. Save multiple employee to #__cf_company_employees
Do I need the DBSave to get the cf_id for the manager? So I can do the second DBSave for employees after the first?
Debug info before save an adaption of data:
I know how to do the coding. But when I submit my form I get the error:
what I need to do:
1. Manager fills in form with multiple employee email-addresses
2. Save manager contact data to #__cf_company
3. Save multiple employee to #__cf_company_employees
Do I need the DBSave to get the cf_id for the manager? So I can do the second DBSave for employees after the first?
#__cf_company
Data
cf_id = 54 (--> un_id for employee)
email_mang = xxx@yyy.net
#__cf_company_employees
Data 1:
cf_id = 1
un_id = 54
ma_email = xxx@yyy.net
Data 2:
cf_id = 2
un_id = 54
ma_email = zzz@aaa.net
Debug info before save an adaption of data:
Array
(
[option] => com_content
[view] => article
[id] => 16
[Itemid] => 136
[chronoform] => unternehmen_adv
[event] => submit
[quickcheck] => exit
[anrede] => Frau
[name] => test
[email_mang] => xxx@yyy.net
[telefon] => 2adf
[unternehmen] => 34asdf
[emailMA] => Array
(
[1] => Array
(
[ma_email] => xxx@yyy.net
[cf_id] =>
[un_id] =>
[quickcheck] =>
)
[2] => Array
(
[ma_email] => zzz@aaa.net
[cf_id] =>
[un_id] =>
[quickcheck] =>
)
)
[start_check] => Quick-Check Einladung versenden
[qc_name] => Exit Interview
[enddatum] => JDate Object
(
[tz:protected] => DateTimeZone Object
(
)
[date] => 2015-11-03 07:16:17.000000
[timezone_type] => 3
[timezone] => UTC
)
[enddatum_format] => 03.11.2015
[cf_id] => 54
[ip_address] => xxxxx
)
I know how to do the coding. But when I submit my form I get the error:
Fatal error: Cannot redeclare class GCore\Models\emailMA in /www/htdocs/administrator/components/com_chronoforms5/chronoforms/actions/db_save/db_save.php(73) : eval()'d code on line 4