Merge from 4.7.18rc to master (#10075)
authorEileen McNaughton <eileen@mcnaughty.com>
Wed, 29 Mar 2017 06:46:07 +0000 (19:46 +1300)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2017 06:46:07 +0000 (19:46 +1300)
commit9b5914f25f2b82a45334c2e6019b385810071607
tree70307bd70c00f09b0f6234b4eb1b44fe42b34ba9
parente655358de649254e181d53ec62e4fae373fcd5fa
Merge from 4.7.18rc to master (#10075)

* Minor test tidy up.

(this is actually because we need a commit to do a merge to master after the same commit was merged to both).

* CRM-20342: add 'view' Api action

* CRM-19385 revert changes to order by id on prevnext_cache.

After PR #10019 was merged @bhahumanists reported on #9801 that smart group ordering was broken. The
report is lacking detail and I could not replicate it, but am reverting the search changes for safety.

After this revert sites can still experiment with dropping/altering the primary key on
-civicrm_cache
-civicrm_group_contact_cache
-civicrm_acl_cache

But not civicrm_prevnext_cache.

Although I could not replicate the search issue it seems to me that our Ubuntu test suite
is failing where the other one is not on search-related items, suggesting that
for some reason Ubuntu does not default to the natural search order, due to
some config or other difference
CRM/Contact/BAO/Query.php
CRM/Core/BAO/PrevNextCache.php