|
|
|
Environment:
|
php 4.4.3, mYSQL 5.0.18
|
|
| Database: |
MySQL
|
| Participants: |
Gustavo Muneto, Petr Skoda and Ray Lawrence
|
| Security Level: |
None
|
| Resolved date: |
23/Mar/07
|
| Affected Branches: |
MOODLE_17_STABLE
|
| Fixed Branches: |
MOODLE_17_STABLE, MOODLE_18_STABLE
|
|
Cannot create new glossary category if category with same name exists in another course on site. If another name is chosen which does not already exist the category can be created without difficulty.
|
|
Description
|
Cannot create new glossary category if category with same name exists in another course on site. If another name is chosen which does not already exist the category can be created without difficulty. |
Show » |
|
Line 134.
original:
$dupcategory = get_records_sql("SELECT * FROM {$CFG->prefix}glossary_categories WHERE name $ILIKE '$name'");
new:
$dupcategory = get_records_sql("SELECT * FROM {$CFG->prefix}glossary_categories WHERE name $ILIKE '$name' and glossaryid=".$glossary->id);