Closed (fixed)
Project:
Configuration Management
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 Oct 2012 at 17:21 UTC
Updated:
24 Oct 2012 at 15:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
dagmarUntested patch.
Comment #2
dagmarNow I remember, wysiwyg doens't use ctools for export/import. I'm going to work on this integration.
Comment #3
dagmarOk, this implement the basic functionality.
Comment #4
lucascaro commentedExporting looks right, importing gives the following error:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'format' cannot be null: INSERT INTO {wysiwyg} (format, editor, settings) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => N; ) in Drupal\configuration\Config\WysiwygConfiguration->saveToActiveStore() (line 75 of /var/www/sites/helior/public_html/sites/preview-site/modules/contrib/configuration/lib/Drupal/configuration/Config/WysiwygConfiguration.php).
Comment #5
dagmarI see. Please try this.
Comment #6
lucascaro commentedI got the same error even after re exporting. Attached is the exported file so you can test.
Comment #7
lucascaro commentedComment #8
dagmarRight, we need also to include text formats a dependency of the wysiwyg.
Now if you export a content type, it will also export the Text Format. There is another issue that will include the wysiwyg twice, see #1807968: Configurations are duplicated when exported childrens
Comment #9
lucascaro commentedThe new file is still failing to import:
Comment #10
dagmarOk, the issue here seems to be related to wysiwyg profiles that doens't have editors defined.
This patch provides a 'default' profile when $data = FALSE; and use the identifier of the wysiwyg to get the format instead of use the saved in the profile.
Comment #11
lucascaro commentedAttached the generated file:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'editor' cannot be null: UPDATE {wysiwyg} SET format=:db_update_placeholder_0, editor=:db_update_placeholder_1, settings=:db_update_placeholder_2 WHERE ( (format = :db_condition_placeholder_0) ); Array ( [:db_update_placeholder_0] => plain_text [:db_update_placeholder_1] => [:db_update_placeholder_2] => N; [:db_condition_placeholder_0] => plain_text ) in Drupal\configuration\Config\WysiwygConfiguration->saveToActiveStore() (line 98 of /var/www/sites/helior/public_html/sites/preview-site/modules/contrib/configuration/lib/Drupal/configuration/Config/WysiwygConfiguration.php).
Comment #12
dagmarSorry
Comment #13
lucascaro commentednew file to check why the settings get removed:
Comment #14
dagmarI think I found the problem.
Comment #15
lucascaro commentedthanks!
Comment #16
dagmarCommitted 033218d
Comment #17.0
(not verified) commentedUpdated issue summary.