CMS MADE SIMPLE FORGE

CGFeedback

 

[#11974] $ratings_options array is not being set correctly

avatar
Created By: Chris Taylor (chrisbt)
Date Submitted: Wed Feb 20 07:57:07 -0500 2019

Assigned To: Robert Campbell (calguy1000)
Version: 2.2.1
CMSMS Version: 2.2.9.1
Severity: None
Resolution: None
State: Open
Summary:
$ratings_options array is not being set correctly
Detailed Description:
In the latest version the $ratings_options array is not being set correctly
before being passed to smarty.  Also setting parameter
ratingoptions='1,2,3,4,5,6' didn't work either. I suspect the
cgfb_comment_ops::text_to_options method isn't returning the right result.

In the smarty template:
   $rating_options:Array
(
    [1
2
3
4
5] => 1
2
3
4
5
)
1

Work around is to set
{$rating_options=['5'=>'5','4'=>'4','3'=>'3','2'=>'2','1'=>'1']} in the form
template


History

Comments
avatar
Date: 2019-05-22 03:05
Posted By: Tristan (tristan)

Had exactly the same problem here.