I have problems with syncing articles and promos. I want to update promos when I edit an article. I have tried the description here: http://groups.drupal.org/node/217239 but I get an error message when I do the following:

- NS alpha13
- Edit rule ns_prod_news_create_promo.
- Added an event "After updating existing content".
- Edited the action "cross clone node", set coupling settings to "couple downstream, similar".

- When I save an article I get this message:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'entity_id' cannot be null: INSERT INTO {field_data_field_ns_prod_news_promo_article} (entity_type, entity_id, revision_id, bundle, delta, language, field_ns_prod_news_promo_article_target_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => ns_prod_news_promo [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 266 ) i field_sql_storage_field_storage_write() (rad 448 av /Users/janfang/Projects/nodestreamalpha13.dev/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).

Do you have any solution for this? It's important for me to sync the promos and articles.

/ Jan


fabsor’s picture

Category: support » bug

This is most certainly due to a bug in the Newspaper product, which automaticly adds the reference to the article in the promo (in ns_prod_news.module). This is a bug, I will check this out as soon as possible.