CMS MADE SIMPLE FORGE

Form Builder

 

[#7732] Default values entered in FB tag cause PHP Warning in submission template

avatar
Created By: Prue Rowland (psy)
Date Submitted: Fri Mar 23 00:09:50 -0400 2012

Assigned To:
Version: 0.7.2
CMSMS Version: None
Severity: Minor
Resolution: None
State: Closed
Summary:
Default values entered in FB tag cause PHP Warning in submission template
Detailed Description:
When you predefine a field value in the FormBuilder tag, eg {FormBuilder
form='my_form' value_fld4='some value'}, the submission template throws a PHP
warning saying that htmlspecialchars requires param1 to be a string, array given
on line 2589.

Quick fix solution - Form.class.php Line 2589:

//$replVal = htmlspecialchars($replVal);
$replVal = is_array($replVal) ? htmlspecialchars($replVal[0]) :
htmlspecialchars($replVal);




History

Comments
avatar
Date: 2013-09-02 15:48
Posted By: Tapio Löytty (Stikki)

0.7.4 is out. Closing. If this still occurs, open new ticket.
      
Updates

Updated: 2013-09-02 15:48
resolution_id: => 5
cmsms_version_id: 29321 => -1
state: Open => Closed