Loading...
 
Skip to main content

Admin Groups - Error appears during Group renaming

Status
Closed
Subject
Admin Groups - Error appears during Group renaming
Version
3.x
Category
  • Error
Feature
Group
Submitted by
Trincio
Volunteered to solve
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

When you try to edit and rename the group in Administration->Groups appears the following error message:

An error occured in a database query!

Context:
File tiki-admingroups.php
Url tiki-admingroups.php
Query:
insert into `tiki_group_inclusion`(`groupName`,`includeGroup`) values(?,?)
Values:
0 G_Communication
1 Registered
Message:

Built query was probably:
insert into `tiki_group_inclusion`(`groupName`,`includeGroup`) values('G_Communication','Registered')

_

Step to reproduce:

Create a Group G.
{
Assign to this group some user
Assign to this group a default
}
Rename the Group G into G'
_

Notes:

I checked the security flag because where there's a DB error could be there a SQL security issue.

Solution

This happened when the renamed group included another group. remove_all_inclusions() wouldn't work due to a group_exists() bug.
Fixed in trunk by r22781.

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2837
Created
Thursday 29 October, 2009 14:59:43 UTC
by Unknown
LastModif
Sunday 01 November, 2009 17:59:43 UTC


Show PHP error messages