Advertisement:

Author Topic: BUG alerts saved with user id disregards the user id/ids.  (Read 49 times)

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1716
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
BUG alerts saved with user id disregards the user id/ids.
« on: September 06, 2019, 12:16:03 pm »
The alert does not display results from user.
Solution.
/oc-includes/osclass/model/Search.php

Code: [Select]
        public function setJsonAlert($aData)
        {
            $this->priceRange($aData['price_min'], $aData['price_max'] );

            $this->categories   = $aData['aCategories'];
            // locations
            $this->city_areas   = $aData['city_areas'];
            $this->cities       = $aData['cities'];
            $this->regions      = $aData['regions'];
            $this->countries    = $aData['countries'];

            $this->user_ids     = $aData['user_ids'];
            $this->withUserId   = empty($aData['user_ids']) === false;

            $this->tables_join  = $aData['tables_join'];

instead of

 
Code: [Select]
       public function setJsonAlert($aData)
        {
            $this->priceRange($aData['price_min'], $aData['price_max'] );

            $this->categories   = $aData['aCategories'];
            // locations
            $this->city_areas   = $aData['city_areas'];
            $this->cities       = $aData['cities'];
            $this->regions      = $aData['regions'];
            $this->countries    = $aData['countries'];

            $this->user_ids     = $aData['user_ids'];

            $this->tables_join  = $aData['tables_join'];
« Last Edit: September 06, 2019, 12:32:48 pm by marius-ciclistu »