diff --git a/profiles/wcm_base/CHANGELOG.txt b/profiles/wcm_base/CHANGELOG.txt index e80443591dc19344aa610a37256094576417973f..17fcc2d75d98b63534bbd7268bf152edf4ea1079 100644 --- a/profiles/wcm_base/CHANGELOG.txt +++ b/profiles/wcm_base/CHANGELOG.txt @@ -1,3 +1,8 @@ +WCM Base 7.x-1.x, 2016-03-17 +---------------------------- +- OCIO SimpleSAMLphp Auth: Added patch to fix missing email address when + accounts are auto-provisioned. + WCM Base 7.x-1.x, 2016-03-15 ---------------------------- - OCIO Omega Base: Added styles for tabs, start importing webfonts in CSS. diff --git a/profiles/wcm_base/modules/contrib/simplesamlphp_auth/PATCHES.txt b/profiles/wcm_base/modules/contrib/simplesamlphp_auth/PATCHES.txt index 7fcd2a87eb25d9010b7e1eaed28f05a631e2c5ae..b92ca3f0c99acb237078f2b8301183df2c7e7f4f 100644 --- a/profiles/wcm_base/modules/contrib/simplesamlphp_auth/PATCHES.txt +++ b/profiles/wcm_base/modules/contrib/simplesamlphp_auth/PATCHES.txt @@ -1,4 +1,5 @@ The following patches have been applied to this project: - http://drupal.org/files/issues/simplesamlphp_auth-admin-users-cannot-other-users-9291915-8.patch +- http://drupal.org/files/issues/simplesamlphp_auth-alter_data_before_writing-2148931-5.patch This file was automatically generated by Drush Make (http://drupal.org/project/drush). \ No newline at end of file diff --git a/profiles/wcm_base/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module b/profiles/wcm_base/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module index afe1de4dc224d910dd9a8389d1576380f4a8b52c..55ce9eb0a38923f540d3f1368b96e2eeface8523 100644 --- a/profiles/wcm_base/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module +++ b/profiles/wcm_base/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module @@ -314,7 +314,7 @@ function simplesamlphp_auth_init() { // If user IDs or roles are specified, we let them in, but everyone else gets logged out. if (drupal_strlen($strAllwDefLogUsers) || $arrAllwDefLogRoles) { - + // Convert the string into an array. // @todo Perform a test to make sure that only numbers, spaces, or commas are in the string. $arrAllwDefLogUsers = explode(',', $strAllwDefLogUsers); @@ -338,18 +338,18 @@ function simplesamlphp_auth_init() { _simplesamlphp_auth_destroy_drupal_session(); } } - + } // Test for specified users. - + } // End if $_simplesamlphp_auth_as->isAuthenticated(). } // End test to see if we allow default logins. } // End if user->uid. } /** - * Implements hook_user_insert(). + * Implements hook_user_presave(). */ -function simplesamlphp_auth_user_insert(&$edit, $account, $category = NULL) { +function simplesamlphp_auth_user_presave(&$edit, $account, $category = NULL) { global $_simplesamlphp_auth_as; global $_simplesamlphp_auth_saml_attributes; global $user; @@ -370,7 +370,7 @@ function simplesamlphp_auth_user_insert(&$edit, $account, $category = NULL) { // Get name from default attributes. try { _simplesaml_auth_debug(t('Registering user [%acctname]', array('%acctname' => $account->name))); - $account->name = _simplesamlphp_auth_get_default_name($account->uid); + $edit['name'] = _simplesamlphp_auth_get_default_name($account->uid); } catch (Exception $e) { drupal_set_message(t('Your user name was not provided by your identity provider (IDP).'), "error"); @@ -378,11 +378,6 @@ function simplesamlphp_auth_user_insert(&$edit, $account, $category = NULL) { } } - db_update('users') - ->fields(array('name' => $account->name)) - ->condition('uid', $account->uid) - ->execute(); - _simplesaml_auth_debug(t('Updating username [%acctname]', array('%acctname' => $account->name))); $mail_address = ''; @@ -390,6 +385,7 @@ function simplesamlphp_auth_user_insert(&$edit, $account, $category = NULL) { // Get mail from default attribute. try { $mail_address = _simplesamlphp_auth_get_mail(); + $edit['mail'] = $edit['init'] = $mail_address; } catch (Exception $e) { drupal_set_message(t('Your e-mail address was not provided by your identity provider (IDP).'), "error"); @@ -402,15 +398,8 @@ function simplesamlphp_auth_user_insert(&$edit, $account, $category = NULL) { } } - if (!empty($mail_address)) { - db_update('users') - ->fields(array('mail' => $mail_address)) - ->condition('uid', $account->uid) - ->execute(); - } - if (module_exists('rules')) { - rules_invoke_event('simplesamlphp_auth_rules_event_register', $account); + rules_invoke_event('simplesamlphp_auth_rules_event_register', $account); } _simplesaml_auth_debug(t('Updating mail [%mailaddr]', array('%mailaddr' => $mail_address))); @@ -472,7 +461,7 @@ function simplesamlphp_auth_settings() { $form['simplesamlphp_auth_grp_setup'] = array( '#type' => 'fieldset', '#title' => t('Basic Setup'), - '#collapsible' => FALSE, + '#collapsible' => FALSE, ); $form['simplesamlphp_auth_grp_setup']['simplesamlphp_auth_activate'] = array( '#type' => 'checkbox', @@ -498,11 +487,11 @@ function simplesamlphp_auth_settings() { '#default_value' => variable_get('simplesamlphp_auth_forcehttps', TRUE), '#description' => t('Should be enabled on production sites.'), ); - + $form['simplesamlphp_auth_grp_user'] = array( '#type' => 'fieldset', '#title' => t('User Info and Syncing'), - '#collapsible' => FALSE, + '#collapsible' => FALSE, ); $form['simplesamlphp_auth_grp_user']['simplesamlphp_auth_user_name'] = array( '#type' => 'textfield', diff --git a/profiles/wcm_base/modules/contrib/workbench_moderation/workbench_moderation.info b/profiles/wcm_base/modules/contrib/workbench_moderation/workbench_moderation.info index 3f9939f1b620392b86995547bbcbb4b94258075d..2ce7d02d0ec65c00180d25c7c0cb760d086f86c1 100644 --- a/profiles/wcm_base/modules/contrib/workbench_moderation/workbench_moderation.info +++ b/profiles/wcm_base/modules/contrib/workbench_moderation/workbench_moderation.info @@ -16,3 +16,6 @@ files[] = workbench_moderation.migrate.inc files[] = tests/external_node_update.test files[] = tests/workbench_moderation.test files[] = tests/workbench_moderation.files.test + +; Dependencies that are only required for the testbot. +test_dependencies[] = drafty diff --git a/profiles/wcm_base/modules/custom/ocio_simplesamlphp_auth/ocio_simplesamlphp_auth.make b/profiles/wcm_base/modules/custom/ocio_simplesamlphp_auth/ocio_simplesamlphp_auth.make index 3581e9f80404bcd11af3c901ae56f455f80a9142..05cc6987277d47a3d77f9e917408cdc96e2dcdf0 100644 --- a/profiles/wcm_base/modules/custom/ocio_simplesamlphp_auth/ocio_simplesamlphp_auth.make +++ b/profiles/wcm_base/modules/custom/ocio_simplesamlphp_auth/ocio_simplesamlphp_auth.make @@ -9,3 +9,4 @@ core = 7.x projects[simplesamlphp_auth][version] = 2.0-alpha2 projects[simplesamlphp_auth][subdir] = contrib projects[simplesamlphp_auth][patch][9291915] = http://drupal.org/files/issues/simplesamlphp_auth-admin-users-cannot-other-users-9291915-8.patch +projects[simplesamlphp_auth][patch][2148931] = http://drupal.org/files/issues/simplesamlphp_auth-alter_data_before_writing-2148931-5.patch diff --git a/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/accordion/editor-accordion.css b/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/accordion/editor-accordion.css index 7396520a4bd93f8b76c2dc50815b2a75b3f077db..bb55875bdc102111b3f785debf6b21998e0220b9 100644 --- a/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/accordion/editor-accordion.css +++ b/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/accordion/editor-accordion.css @@ -40,8 +40,6 @@ margin-top: -0.5em; } -/*.cke_widget_tabs.cke_widget_focused*/ - .cke_widget_accordion + .cke_widget_accordion:before { background-color: #e0e0e0; content: ""; diff --git a/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/tabs/editor-tabs.css b/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/tabs/editor-tabs.css index 4da235245d40942b110623551ea97eb2601cd122..f2c777975d5711e3d57d1f6c0e17dd5387492899 100644 --- a/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/tabs/editor-tabs.css +++ b/profiles/wcm_base/modules/custom/ocio_wysiwyg/plugins/tabs/editor-tabs.css @@ -40,7 +40,6 @@ margin-top: -0.5em; } - .cke_widget_tabs + .cke_widget_tabs:before { background-color: #e0e0e0; content: ""; diff --git a/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.no-query.css b/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.no-query.css index c22ce014dcedcf8d6b4ed37365b54b3ea8c5613f..d94d21e3cecf7896313451b2ae9519daaa48eb5d 100644 --- a/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.no-query.css +++ b/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.no-query.css @@ -2253,7 +2253,7 @@ body .ui-accordion .ui-accordion-header { padding: 0.5em 1em 0.4em 1.9em; } body .ui-accordion .ui-accordion-header.cke_widget_editable { - padding: 0.5em 1em 0.3em 1.9em; + padding: 0.5em 3em 0.3em 1.9em; } body .ui-accordion .ui-accordion-header p { margin: 0; @@ -2297,7 +2297,7 @@ body .ui-tabs .ui-tabs-nav, body .ui-tabs .ui-tabs-nav a { } body .ui-tabs .ui-tabs-nav.cke_widget_editable { background-color: #e0e0e0; - padding: 0.5em 1em 0.3em 1.9em; + padding: 0.5em 3em 0.3em 1.9em; } body .ui-tabs .ui-tabs-nav li, body .ui-tabs .ui-tabs-nav li.ui-state-active, body .ui-tabs .ui-tabs-nav li.ui-state-default, body .ui-tabs .ui-tabs-nav li.ui-state-hover { border-width: 1px 1px 0; diff --git a/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.styles.css b/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.styles.css index b0974fb798bd74ea678bc777b44fc203a6b72100..ad4422b22b85e5a94629ac7e9bda3b52a5fd9b97 100644 --- a/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.styles.css +++ b/profiles/wcm_base/themes/ocio_omega_base/css/ocio-omega-base.styles.css @@ -2285,7 +2285,7 @@ body .ui-accordion .ui-accordion-header { padding: 0.5em 1em 0.4em 1.9em; } body .ui-accordion .ui-accordion-header.cke_widget_editable { - padding: 0.5em 1em 0.3em 1.9em; + padding: 0.5em 3em 0.3em 1.9em; } body .ui-accordion .ui-accordion-header p { margin: 0; @@ -2329,7 +2329,7 @@ body .ui-tabs .ui-tabs-nav, body .ui-tabs .ui-tabs-nav a { } body .ui-tabs .ui-tabs-nav.cke_widget_editable { background-color: #e0e0e0; - padding: 0.5em 1em 0.3em 1.9em; + padding: 0.5em 3em 0.3em 1.9em; } body .ui-tabs .ui-tabs-nav li, body .ui-tabs .ui-tabs-nav li.ui-state-active, body .ui-tabs .ui-tabs-nav li.ui-state-default, body .ui-tabs .ui-tabs-nav li.ui-state-hover { border-width: 1px 1px 0; diff --git a/profiles/wcm_base/themes/ocio_omega_base/sass/components/_widgets.scss b/profiles/wcm_base/themes/ocio_omega_base/sass/components/_widgets.scss index 213a982b2149a70bc8b48f925eeacc8d1e1e303c..dc34526ebc53755f252c164cda72555c648c0b25 100644 --- a/profiles/wcm_base/themes/ocio_omega_base/sass/components/_widgets.scss +++ b/profiles/wcm_base/themes/ocio_omega_base/sass/components/_widgets.scss @@ -15,7 +15,7 @@ body { padding: 0.5em 1em 0.4em 1.9em; &.cke_widget_editable { - padding: 0.5em 1em 0.3em 1.9em; + padding: 0.5em 3em 0.3em 1.9em; } p { @@ -69,7 +69,7 @@ body { &.cke_widget_editable { background-color: $accent; - padding: 0.5em 1em 0.3em 1.9em; + padding: 0.5em 3em 0.3em 1.9em; } li { @@ -89,8 +89,6 @@ body { background-color: $white; } } - - } .ui-tabs-content {