When trying to synchronize CMIS content, the following warnings occur:
Notice: Undefined index: widget_type in _cmis_sync_drupal_node_field_value() (line 214 of drupal-7.10\sites\all\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
Notice: Undefined variable: content_type in _cmis_sync_drupal_node_field_value() (line 285 of drupal-7.10\sites\all\modules\cmis\cmis_sync\cmis_sync.drupal.inc).
This is because $fields is an array of array('widget' => array('type' => ...)), not array('widget_type' => ...). Perhaps this is a change from Drupal 7.x?
The workaround is to change the following line:
// cmis_sync/cmis_sync.drupal.inc line 210
switch($fields[$field_name]['widget_type']) {
To:
// cmis_sync/cmis_sync.drupal.inc line 210
switch($fields[$field_name]['widget']['type']) {
Comments
Comment #1
tobiasbThere is a patch in #1291988: D7 sync implementation is flawed