aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuslan Uzdenov <rxu@mail.ru>2009-07-28 11:47:32 +0000
committerRuslan Uzdenov <rxu@mail.ru>2009-07-28 11:47:32 +0000
commit6510aef869e455ae6748e4719cb6cb187264f4bb (patch)
tree8bb712a4b7a14ba912ab2846dab02dab86b87cd8
parentfecc3383a24eafe9b84caea37720813a0f1f5cfe (diff)
downloadforums-6510aef869e455ae6748e4719cb6cb187264f4bb.tar
forums-6510aef869e455ae6748e4719cb6cb187264f4bb.tar.gz
forums-6510aef869e455ae6748e4719cb6cb187264f4bb.tar.bz2
forums-6510aef869e455ae6748e4719cb6cb187264f4bb.tar.xz
forums-6510aef869e455ae6748e4719cb6cb187264f4bb.zip
Fix bug #48345 - Adding users to group - default rank does not changing correctly
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9879 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/functions_user.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 23db9c780c..93cafef1bd 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -179,6 +179,7 @@
<li>[Fix] Correctly propagate umlauts over search result pages (Bug #33755)</li>
<li>[Fix] Preserve post options when refusing to save the post as a draft. (Bug #39115)</li>
<li>[Fix] Do not send private message back to sender if sender is in the same group the private message was sent to.</li>
+ <li>[Fix] Correctly add user to a group making it a default one. (Bug #48345 - Patch by rxu)</li>
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
<li>[Change] Template engine now permits to a limited extent variable includes.</li>
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index e8584239ad..324be2b1ed 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2780,7 +2780,7 @@ function group_user_add($group_id, $user_id_ary = false, $username_ary = false,
if ($default)
{
- group_set_user_default($group_id, $user_id_ary, $group_attributes);
+ group_user_attributes('default', $group_id, $user_id_ary, false, $group_name, $group_attributes);
}
$db->sql_transaction('commit');