1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-23 09:23:09 +02:00
This commit is contained in:
Huong Nguyen 2024-09-20 11:03:32 +07:00
commit 1cabd82999
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

@ -149,7 +149,7 @@ class move_category extends external_api {
!is_null($origincategory->idnumber)
&& !$manager->idnumber_is_unique_in_context($origincategory->idnumber, $targetparent->contextid)
) {
throw new moodle_exception('idnumberexists', 'qbank_managecategories');
$transaction->rollback(new moodle_exception('idnumberexists', 'qbank_managecategories'));
}
$originstateupdate->fields->context = $targetparent->contextid;
}