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.
Hi there, and again thank you for the amazing module :)
I was wondering if we could adjust the following:
protected function doLoadMultiple(array $ids = NULL) {
$entities = array();
foreach ($ids as $id) {
if (strpos($id, '-')) {
list($bundle, $external_id) = explode('-', $id, 2);
And change the explode to only split on the first '-' and keep the remaining as the external_id. I needed this when working with CKAN which stores an unique id like so:
"id": "1aa53c2b-62da-4982-9fa7-c198d27bb908",
So my full string would be "ckan-1aa53c2b-62da-4982-9fa7-c198d27bb908"
Comment | File | Size | Author |
---|---|---|---|
#7 | external_entities-allow_external_ids_dashes-2872506-7.patch | 576 bytes | rp7 |
|
Comments
Comment #2
sylus CreditAttribution: sylus commentedComment #3
rlnorthcuttI just stumbled across the same issue and came up with the same fix. +1 on this... its a huge blocker
Comment #4
rlnorthcuttComment #5
phenaproximaGenerally, Critical priority is reserved for data loss and other five-alarm fires, but this doesn't seem like that kind of problem, although it is serious. Bumping the priority down a bit. :)
Comment #6
rp7 CreditAttribution: rp7 commentedMaking the title a bit more clearer.
Comment #7
rp7 CreditAttribution: rp7 for Government of Flanders commentedRerolled against current DEV.
Comment #9
rp7 CreditAttribution: rp7 for Government of Flanders commentedCommited. Thank you for your contribution!