Skip to content

Commit

Permalink
Improvement: GH-292 select edit lp
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Oct 15, 2024
1 parent 9671b6a commit b5ad381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,12 @@ public function definition() {
'</a>'
);

$sessionvalue =
isset($_SESSION[SESSION_KEY_ADELE]) ?
$_SESSION[SESSION_KEY_ADELE] :
null;

$records = learning_paths::get_learning_paths(
true,
$sessionvalue
);
$records = learning_paths::get_editable_learning_paths();

$select = [];
$select[] = null;
foreach ($records['edit'] as $record) {
$select[$record['id']] = $record['name'];
foreach ($records as $record) {
$select[$record->id] = $record->name;
}

$options = [
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
$plugin->requires = 2022112800;
$plugin->maturity = MATURITY_ALPHA;
$plugin->dependencies = [
'local_adele' => 2024091800,
'local_adele' => 2024101500,
];

0 comments on commit b5ad381

Please sign in to comment.