mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Now course shortname is searched too, to avoid duplicates over it.
Bug 4607 (http://moodle.org/bugs/bug.php?op=show&bugid=4607) Merged from MOODLE_15_STABLE
This commit is contained in:
parent
9e6433925d
commit
0df0a87214
@ -471,9 +471,10 @@
|
||||
}
|
||||
$currentfullname = $fullname.$suffixfull;
|
||||
$currentshortname = $shortname.$suffixshort;
|
||||
$course = get_record("course","fullname",addslashes($currentfullname));
|
||||
$coursefull = get_record("course","fullname",addslashes($currentfullname));
|
||||
$courseshort = get_record("course","shortname",addslashes($currentshortname));
|
||||
$counter++;
|
||||
} while ($course);
|
||||
} while ($coursefull || $courseshort);
|
||||
|
||||
//New name = currentname
|
||||
$course_header->course_fullname = $currentfullname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user