View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006520 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2016-10-11 11:38 | 2017-01-16 14:44 |
Reporter | preethi | Assigned To | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 4.10.1 / 5.3.1 | ||||
Summary | 0006520: The variable $sQAdd is not defined in the _getQuery() method of the class discount_groups_ajax | ||||
Description | The 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 Information | Solution: 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 "; | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
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. |