1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed All extras added on renew for item with extras

Discussion in 'Resolved Bugs' started by Xon, Jan 21, 2017.

  1. Xon

    Xon New Member Xen Product Manager

    @Chris D In XenProduct_ControllerPublic_License::actionAddToCart(), if a renewal has an extra it adds all extras on the site to the renewal!

    Code:
    $extras = $license['licenseExtras'];
    array_multisort($extras);
    ...
    $extras = $extras ? $this->_getOptionalExtraModel()->getOptionalExtras(array('extra_id' => $extras)) : array();
    
    My solution is to add the following after that sort;
    Code:
    $extras = XenForo_Application::arrayColumn($extras, 'extra_id');
    
     
    Chris D likes this.
  2. Chris D

    Chris D Xen Resources Developer Staff Member Xen Notices

    Made that change, thanks.
     

Share This Page