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:
stronk7 2006-01-19 00:23:01 +00:00
parent 9e6433925d
commit 0df0a87214

View File

@ -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;