Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
MigrateSourceJSON::$sourceUrls
contain an array of URLs and MigrateSourceJSON::$activeUrl
contains the key of the current URL. The first key of MigrateSourceJSON::$sourceUrls
is 0
. MigrateSourceJSON::activeUrl()
is supposed to return the current URL. It first checks to see if MigrateSourceJSON::$activeUrl
evaluates to TRUE
. Because 0
evaluates to FALSE
, the first URL is not returned.
Proposed resolution
Change the test to check whether MigrateSourceJSON::$activeUrl
is set.
Comment | File | Size | Author |
---|---|---|---|
#1 | first-active-url-2237755.patch | 762 bytes | Darren Oh |
Comments
Comment #1
Darren OhAdded patch.
Comment #3
mikeryanSimple and sensible, I like those, thanks!
Comment #4
Darren OhThanks! Updated issue summary.
Comment #5
mikeryanTagging as 2.6.