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!

    $extras = $license['licenseExtras'];
    $extras = $extras ? $this->_getOptionalExtraModel()->getOptionalExtras(array('extra_id' => $extras)) : array();
    My solution is to add the following after that sort;
    $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