ZF-77: Sort does not work for itemSearch()

Issue Type: Bug Created: 2006-06-20T23:13:00.000+0000 Last Updated: 2007-07-05T14:43:08.000+0000 Status: Resolved Fix version(s): - 0.9.2 (06/Apr/07)

Reporter: Zend Framework (zend_framework) Assignee: Darby Felton (darby) Tags: - Zend_Service_Amazon

Related issues: Attachments:


Setting the "sort" parameter of any query results in

Fatal error: Uncaught exception 'Zend_Service_Exception' with message 'You have entered an invalid value for Sort'


<pre class="highlight">
$query->category('Books')->Sort('title')->Author('Doe, John'); 
$results = $query->search() ;

probable reason: Variable $SearchIndex? is not set in function "_validateItemSearch" of Amazon.php (references to $SearchIndex? variable should become $options['SearchIndex'])

Also: List of valid sort values in $_searchSort should be language dependent

        (for example sort value "-pubdate" in category Books is valid for "DE" but not for "US")

Also: Variable $_sortVerbs is apparently never used.


Posted by Matt Sidesinger (mattsidesinger) on 2006-08-03T15:40:07.000+0000

  1. Using version 0.15, I am unable to repeat the "sort" parameter issue. I could not find any reference to any variables named "SearchIndex" ($SearchIndex).
  2. I agree, the list of valid sort values in $_searchSort should be language dependent. I'll try to work on a solution to this problem.

Here is just the difference between the US and DE sort values for the 'Books' category.……

  1. In 0.15 there still is no reference to the $_sortVerbs array.

Posted by Bill Karwin (bkarwin) on 2006-11-13T15:19:03.000+0000

Changing fix version to unknown.

Posted by Darby Felton (darby) on 2007-03-28T19:18:43.000+0000

Updated summary.

Posted by Darby Felton (darby) on 2007-04-04T17:38:01.000+0000

I believe this issue to have been resolved with SVN r4357. If this is not the case, please feel free to reopen with additional comment.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.