Summary | Api listGalleries return galleries in bad order (compared to ansel h3) |
Queue | Ansel |
Queue Version | 2.0.1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | maxime (at) chavagne (dot) net |
Created | 06/22/2012 (4794 days ago) |
Due | |
Updated | 06/22/2012 (4794 days ago) |
Assigned | |
Resolved | 06/22/2012 (4794 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
Assigned to Michael Rubinsky
State ⇒ Not A Bug
was standardized on returning indexed arrays.
Priority ⇒ 1. Low
New Attachment: ansel-api-listgalleries-2.0.1.patch
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ Api listGalleries return galleries in bad order (compared to ansel h3)
Type ⇒ Bug
State ⇒ Unconfirmed
foreach ($galleries as $gallery) {
$return[] = array_merge(
$gallery->toArray(),
array('crumbs' => $gallery->getGalleryCrumbData()));
}
The old api was more like this :
foreach ($galleries as $gallery) {
$return[$gallery->id] = array_merge(
$gallery->toArray(),
array('crumbs' => $gallery->getGalleryCrumbData()));
}