Merge branch 'MDL-87789-501' of https://github.com/snake/moodle into MOODLE_501_STABLE
This commit is contained in:
@@ -2,6 +2,7 @@ LTI 1.3 Tool Library import instructions
|
||||
|
||||
This library is a patched for use in Moodle - it requires the following changes be applied on top of the packback upstream base:
|
||||
1. Removal of phpseclib dependency (replaces a single call with openssl equivalent)
|
||||
2. The fix included in MDL-87789, ensuring optional lineitem properties are omitted if not set.
|
||||
|
||||
To upgrade to a new version of this library:
|
||||
1. Clone the latest version of the upstream library from github:
|
||||
|
||||
@@ -50,7 +50,7 @@ class Resource
|
||||
if (isset($this->line_item)) {
|
||||
$resource['lineItem'] = [
|
||||
'scoreMaximum' => $this->line_item->getScoreMaximum(),
|
||||
'label' => $this->line_item->getLabel(),
|
||||
...(!is_null($this->line_item->getLabel()) ? ['label' => $this->line_item->getLabel()] : []),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user