From 279df974bf8985589096fc1e366c4b7615bb60e2 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 28 Sep 2012 02:05:02 -0500 Subject: [PATCH 1/5] Restored changes from previous commit, merging with fix for refs #5543 --- main/auth/profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/auth/profile.php b/main/auth/profile.php index 30e8ebac03..6f64609727 100644 --- a/main/auth/profile.php +++ b/main/auth/profile.php @@ -446,9 +446,8 @@ if ($form->validate()) { $changeemail = ''; - //If user is sending the email to be changed (input is available and is not freeze ) - if (api_get_setting('registration', 'email') == 'true' && api_get_setting('profile', 'email') == 'true') { - + //If user sending the email to be changed (input available and not frozen ) + if (api_get_setting('profile', 'email') == 'true') { if ($allow_users_to_change_email_with_no_password) { if (!check_user_email($user_data['email'])) { $changeemail = $user_data['email']; @@ -609,6 +608,7 @@ if ($form->validate()) { if (api_get_setting('profile', 'officialcode') == 'true' && isset($user_data['official_code'])) { $sql .= ", official_code = '".Database::escape_string($user_data['official_code'])."'"; } + $sql .= " WHERE user_id = '".api_get_user_id()."'"; Database::query($sql); From 1d3deb6a096c61feae49f8448817a29a5bb3a7bd Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 28 Sep 2012 02:07:45 -0500 Subject: [PATCH 2/5] This is 1.9.2 stable v2 --- main/install/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/install/version.php b/main/install/version.php index 06675c4339..0f16eac241 100644 --- a/main/install/version.php +++ b/main/install/version.php @@ -13,7 +13,7 @@ */ $new_version = '1.9.2'; $new_version_status = 'Stable'; -$new_version_last_id = 1; +$new_version_last_id = 2; $new_version_stable = true; $new_version_major = false; $software_name = 'Chamilo'; From a1f2ebc2b329181bbf2b3704250c3e551c2de003 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 28 Sep 2012 02:16:56 -0500 Subject: [PATCH 4/5] Switched version to 1.9.4 as 1.9.2 is already packaged and just waiting to be released --- main/install/version.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/install/version.php b/main/install/version.php index 0f16eac241..a81660b4af 100644 --- a/main/install/version.php +++ b/main/install/version.php @@ -11,10 +11,10 @@ /** * Variables used from the main/install/index.php */ -$new_version = '1.9.2'; +$new_version = '1.9.4'; $new_version_status = 'Stable'; -$new_version_last_id = 2; -$new_version_stable = true; +$new_version_last_id = 1; +$new_version_stable = false; $new_version_major = false; $software_name = 'Chamilo'; $software_url = 'http://www.chamilo.org/'; From 28ac94a53b6bb6fb650c914d0d5cb8b1a5782629 Mon Sep 17 00:00:00 2001 From: Hubert Borderiou Date: Fri, 28 Sep 2012 10:31:08 +0200 Subject: [PATCH 5/5] Display visual_code instead of code in Subscribe class to courses list - ref #5553 --- main/admin/add_courses_to_usergroup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/admin/add_courses_to_usergroup.php b/main/admin/add_courses_to_usergroup.php index ec45b7b123..ca40194a99 100644 --- a/main/admin/add_courses_to_usergroup.php +++ b/main/admin/add_courses_to_usergroup.php @@ -104,9 +104,9 @@ $elements_not_in = $elements_in= array(); if (!empty($course_list)) { foreach($course_list as $item) { if (in_array($item['id'], $course_list_in)) { - $elements_in[$item['id']] = $item['title']." (".$item['code'].")"; + $elements_in[$item['id']] = $item['title']." (".$item['visual_code'].")"; } else { - $elements_not_in[$item['id']] = $item['title']." (".$item['code'].")"; + $elements_not_in[$item['id']] = $item['title']." (".$item['visual_code'].")"; } } } @@ -154,7 +154,7 @@ function search($needle,$type) { foreach ($list as $row ) { if (!in_array($row['id'], array_keys($elements_in))) { - $return .= ''; + $return .= ''; } } $return .= '';