Plugin Directory

Changeset 1522482


Ignore:
Timestamp:
10/26/2016 01:14:26 PM (9 years ago)
Author:
seorets
Message:

Updated ajax.php to fix missing listing type in URL on general search calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • seo-rets/branches/3.3.70/methods/ajax.php

    r1519512 r1522482  
    912912            $listings = $sr->api_request("get_listings", array(
    913913                'query' => $newquery,
    914                 'fields' => array("mls_id", "address", "city", "state", "zip"),
     914                'fields' => array("mls_id", "address", "city", "state", "zip", "coll_name"),
    915915                'limit' => array(
    916916                    'range' => $get_vars->p,
     
    921921            $base = get_bloginfo('url');
    922922            foreach ($listings->result as $index => $listing) {
    923                 $listings->result[$index]->url = $base. $sr->listing_to_url($listing, $get_vars->t);
     923                $listings->result[$index]->url = $base. $sr->listing_to_url($listing, $listing->coll_name);
    924924            }
    925925            $response = array(
Note: See TracChangeset for help on using the changeset viewer.