[2.0.0-RC-2H] Admin -> Rating -> Undefined index: review_rate

Started by JtouchMobile.com, October 14, 2011, 05:37:39 AM

Previous topic - Next topic

JtouchMobile.com


File: /administrator/components/com_virtuemart/models/ratings.php
Function: saveRating
Code:

if(!empty($review->review_rates)){
$data['review_rates'] = $review->review_rates + $data['review_rate'];
} else {
$data['review_rates'] = $data['review_vote'];
}


Issue:
While saving a review, I got this notice:
QuoteNotice: Undefined index: review_rate in /phpcenter/vm20/administrator/components/com_virtuemart/models/ratings.php on line 332

===
VM: [2.0.0-RC-2H]
Joomla: 1.7.1
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

JtouchMobile.com

Also, is it possible to delete selected review(s) of a product, instead of delete all of its (product item) ratings?
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Milbo

Thanks, should be fixed in the svn

Quote from: MobileMeWs on October 14, 2011, 05:47:03 AM
Also, is it possible to delete selected review(s) of a product, instead of delete all of its (product item) ratings?

You can't create single reviews, but you can edit them. I think you can also delete single reviews, rating should be adjusted then.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

JtouchMobile.com

@Milbo: Great to hear that :)
At my current installation (RC-2H), in List Review page (sample link: administrator/index.php?option=com_virtuemart&view=ratings&task=listreviews&virtuemart_product_id=8)
there has no button at to-right conner as often
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Milbo

Yes this intended.

The adding and removing of reviews is not so trivial.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/