Project

General

Profile

Bug #2258

Strange code block for handling ajax requests in view.php

Added by Batyr Mackenov about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
October 28, 2015
Due date:
% Done:

100%

Estimated time:

Description

if (iaView::REQUEST_JSON == $iaView->getRequestType())
{
    $output = array('error' => true, 'message' => iaLanguage::get('invalid_parameters'));

    switch ($_POST['action'])
    {
        case 'callback':

            if ($listingId = (int)end($iaCore->requestPath))
            {
                $listing = $iaAuto->getById($listingId);
            }

            break;
    }

    $iaView->assign($output);
}

It seems this code block does nothing.

Check for references and remove if there aren't.

History

#1

Updated by Vasily Bezruchkin about 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

I was going to implement an enquiry functionality through it. Removed.

#2

Updated by Vasily Bezruchkin about 4 years ago

  • Target version changed from 4.0.2 to 4.0.0

Also available in: Atom PDF