VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: JtouchMobile.com on October 14, 2011, 05:37:39 AM

Title: [2.0.0-RC-2H] Admin -> Rating -> Undefined index: review_rate
Post by: JtouchMobile.com on October 14, 2011, 05:37:39 AM

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
Title: Re: [2.0.0-RC-2H] Admin -> Rating -> Undefined index: review_rate
Post by: JtouchMobile.com 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?
Title: Re: [2.0.0-RC-2H] Admin -> Rating -> Undefined index: review_rate
Post by: Milbo on October 14, 2011, 11:38:42 AM
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.
Title: Re: [2.0.0-RC-2H] Admin -> Rating -> Undefined index: review_rate
Post by: JtouchMobile.com on October 14, 2011, 16:32:03 PM
@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
Title: Re: [2.0.0-RC-2H] Admin -> Rating -> Undefined index: review_rate
Post by: Milbo on October 14, 2011, 19:20:00 PM
Yes this intended.

The adding and removing of reviews is not so trivial.