Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Version increment
Browse files Browse the repository at this point in the history
  • Loading branch information
doo-project committed Jan 29, 2018
1 parent 9922627 commit 53a9c4f
Show file tree
Hide file tree
Showing 70 changed files with 105 additions and 86 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# University of Helsinki Courses v1.107
Päiväys: 25.01.2018

## Lisäykset
- DOO-3225: Lisättiin "On-Behalf-Of" -otsikkotieto opettajan lähettämiin viesteihin.

## Muutokset
- DOO-3332: Siirrytään käyttämään organisaatiorekisterin tuotantoversiota.

## Korjaukset
- DOO-3338: Kurssisivuilta lähtevässä sähköpostissa näkyivät kaikki opiskelijat jakelussa.
- DOO-3270: Kommentit ja tulokset -haitareita ei enää näytetä, mikäli niissä ei ole sisältöä.


# University of Helsinki Courses v1.106
Päiväys: 11.01.2018

Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_activemq_connector/uhc_activemq_connector.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name = UHC ActiveMQ Connector
description = This module is deprecated.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_activemq_connector
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Analytics and Tracking
description = Specifies statistics/analytics for portal.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_analytics_and_tracking
dependencies[] = ctools
dependencies[] = facetapi
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_autofill_metadata/uhc_autofill_metadata.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Autofill Metadata
description = Fetches user metadata from Shibboleth integration.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_autofill_metadata
dependencies[] = ctools
dependencies[] = features
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_autologin/uhc_autologin.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name = UHC Autologin
description = Provides autologin services.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_autologin
dependencies[] = shib_auth
2 changes: 1 addition & 1 deletion modules/uhc_avatar/uhc_avatar.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name = UHC Avatar
description = Provides avatar (user image) related functionality
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_avatar
2 changes: 1 addition & 1 deletion modules/uhc_cache_warmer/uhc_cache_warmer.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name = UHC Cache Warmer
description = Provides a drush command for generating a hub pages file for the cache_warmer module.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_cache_warmer
2 changes: 1 addition & 1 deletion modules/uhc_comment/uhc_comment.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Comment
description = Configures comments for this portal.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_comment
dependencies[] = comment
dependencies[] = ctools
Expand Down
17 changes: 10 additions & 7 deletions modules/uhc_comment/uhc_comment.module
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ function uhc_comment_preprocess_comment(&$variables) {
function uhc_comment_node_view($node, $view_mode, $langcode) {
if ($node->type == 'course_implementation') {
uhc_comment_add_accordion_target_to_pager_links();
if (!empty($node->content['comments'])) {
if (!uhc_comment_form_access($node)) {
if (count($node->content['comments']['comments']) > 0) {
$node->content['comments']['comment_form']['#access'] = FALSE;
}
else {
$node->content['comments']['#access'] = FALSE;
}
}
}
}
}

Expand All @@ -79,13 +89,6 @@ function uhc_comment_add_accordion_target_to_pager_links() {
* Implements hook_form_FORM_ID_alter().
*/
function uhc_comment_form_comment_node_course_implementation_form_alter(&$form, &$form_state, $form_id) {
if (!uhc_comment_form_access($form['#node'])) {
// Deny access to form.
$form['#access'] = FALSE;
// Hide "Add new comment" title.
drupal_add_css('div#comments h2.title {display: none;}', 'inline');
}

_uhc_comment_set_default_reply_to_address($form);

$form['#validate'][] = 'uhc_comment_comment_form_validate';
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_contact_card/uhc_contact_card.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Contact card
description = Provides Contact Card content type
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_contact_card
dependencies[] = ctools
dependencies[] = email
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = UHC Content Administration
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_content_administration_feature
dependencies[] = actions_permissions
dependencies[] = admin_menu
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_course/uhc_course.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = UHC Course
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course
dependencies[] = ctools
dependencies[] = entity_token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Collaboration
description = Organic Groups for course implementation nodes
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_collaboration
dependencies[] = ctools
dependencies[] = features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Collaboration Private
description = Extends collaboration by providing option to share content privately.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_collaboration_private
dependencies[] = comment_og
dependencies[] = conditional_fields
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_course_hierarchy/uhc_course_hierarchy.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Hierarchy
description = Shows the hierarchy for users in course implementation pages.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_hierarchy
php = 5.4
dependencies[] = uhc_autofill_metadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course implementation
description = This feature provides content type for course implementations
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_implementation
dependencies[] = ctools
dependencies[] = date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -671,13 +671,15 @@ function uhc_course_implementation_help_texts_messages(&$content, $node, $drupal
* Callback for exam results info text.
*/
function uhc_course_implementation_exam_results_info_text($field) {
if (empty($field['entity']->field_imp_results)) {
return '';
if ((!empty($field['entity']->field_imp_results) &&
uhc_course_collaboration_private_current_user_has_access_to_private_content()) ||
uhc_tour_is_demo_node($field['entity'])) {
return '<div class="messages views-system-message status info alternative"><p>'
. t('Results are available for six months after they have been published')
. '</p></div>';
}

return '<div class="messages views-system-message status info alternative"><p>'
. t('Results are available for six months after they have been published')
. '</p></div>';
return '';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Implementation Activity
description = Tracks activity of course implementation.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_implementation_activity
dependencies[] = comment
dependencies[] = ctools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,15 @@ function uhc_course_implementation_activity_send_notify_mail($comment) {

// Fetch enrolled students' emails. Abort if none found.
$students = uhc_course_collaboration_get_course_students(field_get_items('node', $node, 'field_imp_id')[0]['value']);
$to = '';
$recipients = array();
foreach ($students as $student) {
if (!empty($student['email'])) {
$to .= $student['email'] . ', ';
$recipients[] = $student['email'];
}
}
if (!$to) {
if (empty($recipients)) {
return;
}
else {
// Remove trailing separator
$to = substr($to, 0, -2);
}

// Get teaching language (determines the language of sent emails)
$field_imp_teaching_language = field_get_items('node', $node, 'field_imp_teaching_language');
Expand Down Expand Up @@ -220,9 +216,12 @@ function uhc_course_implementation_activity_send_notify_mail($comment) {
$reply_to_email = field_get_items('comment', $comment, 'field_reply_to_email');
if (!empty($reply_to_checked[0]['value']) && !empty($reply_to_email[0]['value'])) {
$params['Reply-To'] = $reply_to_email[0]['value'];
$params['On-Behalf-Of'] = $reply_to_email[0]['value'];
}

drupal_mail('uhc_course_implementation_activity', 'notification', $to, $selected_lang, $params, $from, TRUE);
foreach ($recipients as $to) {
drupal_mail('uhc_course_implementation_activity', 'notification', $to, $selected_lang, $params, $from, TRUE);
}
}

/**
Expand All @@ -237,6 +236,7 @@ function uhc_course_implementation_activity_mail($key, &$message, $params) {
$message['headers']['Sender'] = $params['from'];
if (!empty($params['Reply-To'])) {
$message['headers']['Reply-To'] = $params['Reply-To'];
$message['headers']['On-Behalf-Of'] = $params['On-Behalf-Of'];
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Implementation Activity MECE
description = Sends all activity notifications to Message Center.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_implementation_activity_mece
dependencies[] = uh_mece_notifications
dependencies[] = uhc_course_implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Implementation Inherited Fields
description = Holds field values that comes from course from the time when course implementation was active.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_implementation_inherited_fields
dependencies[] = ctools
dependencies[] = ds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Implementation Source
description = Provides the source data for course implementation.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_implementation_source
files[] = includes/UHCCourseImplementationMessageProcessor.inc
files[] = migrate/CourseImplementationDestinationNode.inc
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_course_material/uhc_course_material.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = UHC Course material
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_material
dependencies[] = ctools
dependencies[] = entityreference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name = UHC Course Material Drag 'N Drop
description = Provides UX for drag and dropping materials to a course implementation.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_material_dnd
dependencies[] = uhc_course_material
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Material Sort
description = Provides Alphabetical sorting for course material.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_material_sort
dependencies[] = behavior_weights
dependencies[] = uhc_course_material
2 changes: 1 addition & 1 deletion modules/uhc_course_source/uhc_course_source.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course Source
description = Provides the source data for courses.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_source
files[] = includes/UHCCourseMessageProcessor.inc
files[] = migrate/CourseNodeMigration.inc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Course tasks and material
description = Provide content type for tasks and material - used on courses
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_course_tasks_and_material
dependencies[] = ctools
dependencies[] = entityreference
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_css_js_aggregation/uhc_css_js_aggregation.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC CSS/JS Aggregation
description = Advanced CSS/JS aggregation settings
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
dependencies[] = advagg
dependencies[] = advagg_mod
dependencies[] = ctools
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_date_format/uhc_date_format.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Date format
description = Date formats
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_date_format
dependencies[] = ctools
dependencies[] = strongarm
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_dev_feature/uhc_dev_feature.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Dev
description = Useful views etc. for development phase.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_dev_feature
dependencies[] = views
features[ctools][] = views:views_default:3.0
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_doo_theme_features/uhc_doo_theme_features.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC DOO theme
description = Theme settings for DOO project which override and extend the main theme feature which was included in the main theme settings.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_doo_theme_features
dependencies[] = block
dependencies[] = context
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_ds/uhc_ds.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description = Display settings for UHC subsite.
core = 7.x
php = 5.5
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_ds
dependencies[] = ctools
dependencies[] = date_views
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_elisa_chat/uhc_elisa_chat.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name = UHC Elisa Chat
description = Adds Elisa Chat to specified pages.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_elisa_chat
2 changes: 1 addition & 1 deletion modules/uhc_environment/uhc_environment.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name = UHC Environment
description = Appends an multilingual message about current environment.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
dependencies[] = site_status_message
2 changes: 1 addition & 1 deletion modules/uhc_event/uhc_event.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Event
description = Provides event content type
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_event
dependencies[] = ctools
dependencies[] = date
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_exam_results/uhc_exam_results.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Exam results
description = Provides Exam results content type
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
dependencies[] = ctools
dependencies[] = features
dependencies[] = file
Expand Down
2 changes: 1 addition & 1 deletion modules/uhc_favorites/uhc_favorites.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = UHC Favorites
description = Provides ability to put courses into your favorites and send them via email.
core = 7.x
package = UHC
version = 7.x-1.106
version = 7.x-1.107
project = uhc_favorites
dependencies[] = favoritewidget
dependencies[] = uhc_course_implementation
Expand Down
Loading

0 comments on commit 53a9c4f

Please sign in to comment.