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.
Idea is coming from,
We do use *db_set_active* to switch database, now suppose I have a multiple drupal site and it's required to execute node_save
in this conjunction as db_transaction have a call at the initial line of node_save without considering the different *key* so it's always fallback to default only.
So instead of using *db_set_active* enforce to switch using an optional variable to consume a different key name in *db_transaction* function. Here is the patch
Comment | File | Size | Author |
---|---|---|---|
#2 | 2893293-node-save-with-db-set-active-2.patch | 1.58 KB | roynilanjan |
Comments
Comment #2
roynilanjan CreditAttribution: roynilanjan commentedComment #3
cilefen CreditAttribution: cilefen commented