Minor issue in admin backend - FIXED IN V3.5

Post Reply
RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Minor issue in admin backend - FIXED IN V3.5

Post by RWAP » Mon Sep 24, 2012 8:06 am

When you go to user management and click on the auctions for a given user, you see the list of auctions, and an error at the top of the page 'Please select a valid offer'

The solution is to alter the code in class\Action\Admin\User.php

Find the offers() function and then look for the code:

Code: Select all

        $offer = Offer::getInstanceFromDB($this->db, $offerId);
        if(!$offer instanceof Offer){
            $this->context->status = false;
            $this->context->errorMessage = _('Please select a valid offer');
            $this->displayUserOffers($userObj);
            return false;
        }
Change this to:

Code: Select all

        if ($offerId){
	        $offer = Offer::getInstanceFromDB($this->db, $offerId);
	        if(!$offer instanceof Offer){
	            $this->context->status = false;
	            $this->context->errorMessage = _('Please select a valid offer');
	            $this->displayUserOffers($userObj);
	            return false;
	        }
        } else {
        	$this->displayUserOffers($userObj);
            return true;
        }

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest