View Issue Details

IDProjectCategoryView StatusLast Update
0005648OXID ERP InterfaceOXID ERP Interface - subpublic2024-01-17 15:30
Reportermichael_keiluweit Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version2.12.0 
Summary0005648: PHP notice message when oxERPBase::_checkAccess() is called
DescriptionFollowing notice message is thrown by PHP when the method oxERPBase::_checkAccess() is called:

PHP Notice: Undefined property: oxConfig::$blUseRightsRoles in [...]/modules/erp/oxerpbase.php on line 550

Problem is here:

        // add R&R check for access
        if ($myConfig->blUseRightsRoles && oxNew('OXERPCompatibility')->isShopEE()) {


Additional InformationTo avoid the notice message it's needed to check if the class attribute blUseRightsRoles is existing:

if (
    oxNew('OXERPCompatibility')->isShopEE()
    && isset($myConfig->blUseRightsRoles)
    && $myConfig->blUseRightsRoles
) {
    //some code
}
TagsSolution Provided

Activities

There are no notes attached to this issue.