View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005522 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2013-11-21 09:07 | 2013-11-25 17:00 |
Reporter | Udo | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.0 / 5.1.0 | ||||
Target Version | 4.9.0_5.2.0_beta1 | Fixed in Version | 4.9.0_5.2.0_beta1 | ||
Summary | 0005522: Missing getter for oxwrating widget | ||||
Description | oxwRating 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!? | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||