Forums

Email verification sender action does not shows table connected in form list

thepisu 07 Mar, 2014
Hello, I am using the "Email verification" feature, with two actions "Email verification sender" and "Email verification response".

The "Email verification sender" saves form data into a database table, just like the "DB Save" action; in addition, it only set the verify code and verified fields.

I see that a form with a "Email verification sender" action does not show the selectbox for selecting "Table Connected" for the "Show Data" button; I think that it should do this, just like the regular "DB Save" action.

I think that you should modify this file:
administrator/components/com_chronoforms/views/index.php

At line 118:
							if($action->type == 'db_save' || $action->type == 'db_record_loader' || $action->type == 'db_multi_record_loader'){
								$action_params = new JParameter($action->params);
								$table_name = $action_params->get('table_name', '');
								if(!empty($table_name)){
									$tables[] = $table_name;
								}
							}
thepisu 07 Mar, 2014
I just tried, and the correct code is the following:

							if($action->type == 'db_save' || $action->type == 'db_record_loader' || $action->type == 'db_multi_record_loader' || $action->type == 'email_verification_sender'){
								$action_params = new JParameter($action->params);
								$table_name = $action_params->get('table_name', '');
								if(!empty($table_name)){
									$tables[] = $table_name;
								}
							}
GreyHead 08 Mar, 2014
Hi thepisu,

Thank you for that bug-fix, hopefully Max will include it in a future version.

Bob
This topic is locked and no more replies can be posted.