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.
Hello,
Not sure if this has been reported yet, did a little search and nothing came up, so assuming not known/discovered yet. Adding "0" (without the quotes) as a mapping source brings error: You must select a mapping source. Haven't dug into the code yet but from my past experience I'm almost certain that it's triggered by the empty()
function.
There's probably something like:
if (empty($mapping_source)) {
// report error
}
Which should be changed to something like:
if ($mapping_source === '') {
// report error
}
Will provide a patch if I can spare some time out these days.
Comments
Comment #1
Jeffrey C. CreditAttribution: Jeffrey C. commentedComment #2
Jeffrey C. CreditAttribution: Jeffrey C. commentedAnd I was right.
feeds_ui.admin.inc:
This should probably be changed, too:
if (empty($form_state['values']['source']) xor empty($form_state['values']['target'])) {
Comment #3
bbdata CreditAttribution: bbdata commentedWould this be the same issue as the one found here?
https://drupal.org/node/1984962
Comment #4
MegaChriz CreditAttribution: MegaChriz commented@bbdata
Yes, well noted! This is indeed a duplicate of #1984962: Use a 0 as mapping source.
See the patch #6 of that issue: