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:
Sara Arjona 2020-05-19 21:30:34 +02:00
parent 1afe68f382
commit 630a19ebd5
3 changed files with 15 additions and 32 deletions

View file

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