View Issue Details

IDProjectCategoryView StatusLast Update
0005522OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2013-11-25 17:00
ReporterUdo Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.8.0 / 5.1.0 
Target Version4.9.0_5.2.0_beta1Fixed in Version4.9.0_5.2.0_beta1 
Summary0005522: Missing getter for oxwrating widget
DescriptionoxwRating is called in inc/productmain.tpl like this:

[{oxid_include_widget cl="oxwRating" blCanRate=$oView->canRate() _parent=$oViewConf->getTopActiveClassName() nocookie=1 force_sid=$force_sid sRateUrl=$oDetailsProduct->getLink() dRatingCount=$oView->getRatingCount() dRatingValue=$oView->getRatingValue() anid=$oDetailsProduct->oxarticles__oxnid->value skipESIforUser=1}]

There is a param "sRateUrl" which is used in widget template like this: [{if $sRateUrl}]. The value is alway NULL. Via [{debug}] you can see, that the value is available in
{$oView}
oxwRating Object (1)
->_aViewParams = Array (8)
sRateUrl => "http://192.168.1...

Some of the other parameters are available in the widget controller via own getter functions like dRatingCount for example:

public function getRatingCount()
{
    return $dCount = $this->getViewParameter( "dRatingCount" );
}

This would work for sRateUrl also but the function is missing in the widget controller. So I guess its a bug!?
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Activities

tomas.lygutas

2013-11-25 17:00

reporter   ~0009302

Fully fixed for next major version, includes template fix.

Improved for 5.1.x - fixes in oxwrating.php and oxwratingTest.php only, getters added.