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.
Similar problem as #2117453: uuid_node doesn't use entity_uuid_load/save to load/save node, ad hoc fix:
@@ -158,9 +158,7 @@
// Create a new bean.
$bean = entity_create('bean', $data);
}
- if (!$bean->save()) {
- drupal_set_message('Failed to create ' . $data['type'] . ' bean ' . $data['label'], 'error');
- }
+ entity_uuid_save('bean', $bean);
}
}
}
Comment | File | Size | Author |
---|---|---|---|
#1 | uuid_features-2117455-1-uuid_bean-doesn-t-use-entity_uuid_save.patch | 1.16 KB | geek-merlin |
Comments
Comment #1
geek-merlinRight. Patch flying in that fixes this.
Comment #3
das-peter CreditAttribution: das-peter as a volunteer commented@axel.rutz Thanks for the patch. Fixed a typo in
This shoulc work with both.
- and pushed.