mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-68746 core_badges: remove Issuer details from badges form
When OBv2.0 support was added, the issuername and issuercontact fields were changed to static. In order to avoid confusion for the user, these fields shouldn't be displayed for OBv2.0 or higher.
This commit is contained in:
parent
1afe68f382
commit
630a19ebd5
3 changed files with 15 additions and 32 deletions
|
@ -87,7 +87,7 @@ if ($form->is_cancelled()) {
|
|||
$fordb->usercreated = $USER->id;
|
||||
$fordb->usermodified = $USER->id;
|
||||
|
||||
if (badges_open_badges_backpack_api() != OPEN_BADGES_V2) {
|
||||
if (badges_open_badges_backpack_api() == OPEN_BADGES_V1) {
|
||||
$fordb->issuername = $data->issuername;
|
||||
$fordb->issuerurl = $data->issuerurl;
|
||||
$fordb->issuercontact = $data->issuercontact;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue