Zend Framework

Not possible to fetch tracks from amazon via Zend_Service_Amazon when there's more than one disc

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Service_Amazon
  • Labels:
    None
  • Fix Version Priority:
    Should Have

Description

The variable gets overwritten when there's more than one disc.

Row 154-158 in Zend_Service_Amazon_Item:

foreach ($result as $disk) {
    foreach ($xpath->query('./*/text()', $disk) as $t) {
        $this->Tracks[$disk->getAttribute('number')] = (string) $t->data;
    }
}

Activity

Hide
Johannes Schill added a comment -

Ok, this was my first issue, sorry for the [code]. I hope you understand anyway.

Instead of:
$this->Tracks[$disk->getAttribute('number')] = (string) $t->data;

It should be:
$this->Tracks[$disk->getAttribute('number')][] = (string) $t->data;

Show
Johannes Schill added a comment - Ok, this was my first issue, sorry for the [code]. I hope you understand anyway. Instead of: $this->Tracks[$disk->getAttribute('number')] = (string) $t->data; It should be: $this->Tracks[$disk->getAttribute('number')][] = (string) $t->data;
Hide
Thomas Weidner added a comment -

Assigned to Darby

Show
Thomas Weidner added a comment - Assigned to Darby
Hide
Wil Sinclair added a comment -

This issue should have been fixed for the 1.5 release.

Show
Wil Sinclair added a comment - This issue should have been fixed for the 1.5 release.
Hide
Wil Sinclair added a comment -

This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Show
Wil Sinclair added a comment - This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Hide
Benjamin Eberlei added a comment -

Will be fixed in 1.8 or as of trunk revision r12666.

Show
Benjamin Eberlei added a comment - Will be fixed in 1.8 or as of trunk revision r12666.

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified