[Tickets #11228] Api listGalleries return galleries in bad order (compared to ansel h3)

bugs at horde.org bugs at horde.org
Fri Jun 22 21:26:10 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11228
------------------------------------------------------------------------------
  Ticket             | 11228
  Created By         | maxime at chavagne.net
  Summary            | Api listGalleries return galleries in bad order
                     | (compared to ansel h3)
  Queue              | Ansel
  Version            | 2.0.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


maxime at chavagne.net (2012-06-22 21:26) wrote:

ansel/lib/Api.php on line 722/723

         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()));
         }




maxime at chavagne.net (2012-06-22 21:26) uploaded:  
ansel-api-listgalleries-2.0.1.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=ansel-api-listgalleries-2.0.1.patch&ticket=11228&fn=%2Fansel-api-listgalleries-2.0.1.patch





More information about the bugs mailing list