View Issue Details

IDProjectCategoryView StatusLast Update
0006520OXID eShop (all versions)4.07. Source code, Testpublic2017-01-16 14:44
Reporterpreethi Assigned To 
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version4.10.1 / 5.3.1 
Summary0006520: The variable $sQAdd is not defined in the _getQuery() method of the class discount_groups_ajax
DescriptionThe variable $sQAdd is not defined in the else clause in the method Shop_URL/application/controllers/admin/discount_groups_ajax.php::_getQuery().

Hence the following Warning gets logged into PHP error logs:

PHP Notice: Undefined variable: sQAdd in /var/www/html/application/controllers/admin/discount_groups_ajax.php on line 56
Additional InformationSolution:

In the method Shop_URL/application/controllers/admin/discount_groups_ajax.php::_getQuery() on line 56, the following code


else {
            $sQAdd .= " from oxobject2discount, {$sGroupTable} where {$sGroupTable}.oxid=oxobject2discount.oxobjectid ";


should be replaced with


else {
            $sQAdd = " from oxobject2discount, {$sGroupTable} where {$sGroupTable}.oxid=oxobject2discount.oxobjectid ";

TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

QA

2017-01-16 14:44

administrator   ~0011931

The bug was fixed in the latest version of OXID shop :
https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Application/Controller/Admin/DiscountGroupsAjax.php#L71

Hence closing.