Skip to content

Commit

Permalink
MDL-58058 competency: replace other sortorder usages
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Dec 8, 2017
1 parent a34f98e commit 3eba444
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion competency/classes/api.php
Expand Up @@ -165,7 +165,7 @@ public static function create_competency(stdClass $record) {
require_capability('moodle/competency:competencymanage', $competency->get_context());

// Reset the sortorder, use reorder instead.
$competency->set('sortorder', null);
$competency->set('sortorder', 0);
$competency->create();

\core\event\competency_created::create_from_competency($competency)->trigger();
Expand Down
2 changes: 1 addition & 1 deletion competency/classes/template_competency.php
Expand Up @@ -53,7 +53,7 @@ protected static function define_properties() {
),
'sortorder' => array(
'type' => PARAM_INT,
'default' => null,
'default' => 0,
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion competency/classes/user_competency_plan.php
Expand Up @@ -66,7 +66,7 @@ protected static function define_properties() {
),
'sortorder' => array(
'type' => PARAM_INT,
'default' => null,
'default' => 0,
),
);
}
Expand Down

0 comments on commit 3eba444

Please sign in to comment.