mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
"MDL-21122, fixed saving setting problem in section links block, merged from 1.9"
This commit is contained in:
parent
688fb45354
commit
65a86aa764
@ -73,7 +73,7 @@ class block_section_links extends block_base {
|
||||
}
|
||||
|
||||
if(!empty($config->numsections2) and ($course->numsections > $config->numsections2)) {
|
||||
$inc = $config->incby1;
|
||||
$inc = $config->incby2;
|
||||
} else {
|
||||
if ($course->numsections > 40) {
|
||||
$inc = 5;
|
||||
|
@ -18,7 +18,7 @@ if(isset($this->config)){
|
||||
|
||||
$selected = array();
|
||||
if (!empty($config->numsections1)) {
|
||||
if (!empty($config->incby1)) {
|
||||
if (empty($config->incby1)) {
|
||||
$config->incby1 = 2;
|
||||
}
|
||||
$selected[1] = array($config->numsections1, $config->incby1);
|
||||
@ -27,7 +27,7 @@ if (!empty($config->numsections1)) {
|
||||
}
|
||||
|
||||
if (!empty($config->numsections2)) {
|
||||
if (!empty($config->incby1)) {
|
||||
if (empty($config->incby1)) {
|
||||
$config->incby1 = 5;
|
||||
}
|
||||
$selected[2] = array($config->numsections2, $config->incby2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user