mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MNet upgrade: missing required not null value
The column description in mnet_service table is set to not null and no value is set for the insert_record(). We must explicitly provide the empty string if the description is not defined in db/mnet.php file.
This commit is contained in:
parent
2380ac57d6
commit
f4a2817ac5
@ -1507,6 +1507,7 @@ function upgrade_plugin_mnet_functions($component) {
|
|||||||
} else {
|
} else {
|
||||||
$serviceobj = new stdClass();
|
$serviceobj = new stdClass();
|
||||||
$serviceobj->name = $service['servicename'];
|
$serviceobj->name = $service['servicename'];
|
||||||
|
$serviceobj->description = empty($service['description']) ? '' : $service['description'];
|
||||||
$serviceobj->apiversion = $service['apiversion'];
|
$serviceobj->apiversion = $service['apiversion'];
|
||||||
$serviceobj->offer = 1;
|
$serviceobj->offer = 1;
|
||||||
$serviceobj->id = $DB->insert_record('mnet_service', $serviceobj);
|
$serviceobj->id = $DB->insert_record('mnet_service', $serviceobj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user