| Summary | Api getGalleries function return empty array |
| Queue | Ansel |
| Queue Version | 2.0.1 |
| Type | Bug |
| State | Resolved |
| Priority | 1. Low |
| Owners | mrubinsk (at) horde (dot) org |
| Requester | maxime (at) chavagne (dot) net |
| Created | 06/22/2012 (4885 days ago) |
| Due | |
| Updated | 08/29/2012 (4817 days ago) |
| Assigned | |
| Resolved | 07/21/2012 (4856 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
commit 9374a66acca60810b07005f0f73d66f8fafc7319
Author: maxime@chavagne.net <maxime@chavagne.net>
Date: Fri Jul 20 23:45:56 2012 -0400
Bug: 11229Fix getting gallery data via the API.Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
ansel/lib/Api.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/9374a66acca60810b07005f0f73d66f8fafc7319
Assigned to Michael Rubinsky
State ⇒ Resolved
commit e11e72b40ebe594c73e6945a0e0c73610aad4f76
Author: maxime@chavagne.net <maxime@chavagne.net>
Date: Fri Jul 20 23:45:56 2012 -0400
Bug: 11229Fix getting gallery data via the API.Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
ansel/lib/Api.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/e11e72b40ebe594c73e6945a0e0c73610aad4f76
commit 9374a66acca60810b07005f0f73d66f8fafc7319
Author: maxime@chavagne.net <maxime@chavagne.net>
Date: Fri Jul 20 23:45:56 2012 -0400
Bug: 11229Fix getting gallery data via the API.Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
ansel/lib/Api.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/9374a66acca60810b07005f0f73d66f8fafc7319
Priority ⇒ 1. Low
New Attachment: ansel-api-getGalleries-2.0.1.patch
Patch ⇒ Yes
Milestone ⇒
Summary ⇒ Api getGalleries function return empty array
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ Ansel
When trying to retrieve gallery datas via the api I get an empty array :
ansel/lib/Api.php on line 759
$galleries = array();
foreach ($results as $gallery) {
$galleries[$gallery->id] = array_merge(
$gallery->data,
array('crumbs' => $gallery->getGalleryCrumbData()));
}
I think it should be :
$galleries = array();
foreach ($results as $gallery) {
$galleries[$gallery->id] = array_merge(
$gallery->toArray(),
array('crumbs' => $gallery->getGalleryCrumbData()));
}