2618 Commits

Author SHA1 Message Date
Adrian Greeve
4d4dcc2718 MDL-48239 gradebook: Calculated grades maxgrade now able to be set. 2015-07-02 11:13:25 +08:00
David Monllao
35af60da7e MDL-50569 backup: Missing get_target call 2015-06-30 10:26:18 +08:00
Frederic Massart
eff864e7eb MDL-50569 grades: Restore as merge always ignores minmaxtouse 2015-06-29 14:24:13 +08:00
Frederic Massart
cd4061ecd4 MDL-50569 grades: Handle minmaxtouse in backup/restore 2015-06-29 14:24:12 +08:00
Marina Glancy
fd36588fb6 MDL-49257 grades: apply freeze when restoring with contents deleting 2015-06-25 14:39:15 +08:00
Marina Glancy
156d048659 MDL-49257 grades: fix bugs with extra credit weights
When we adjust the weights in natural grading (setup screen), the extra credit items
should not depend on other overrides. If extra credit item's weight was overriden, it stays as it is.
Otherwise it is calculated as itemgrademax / totalgrademax (total excludes extra credit items)
2015-06-23 14:25:50 +08:00
Marina Glancy
deb3d5ed00 MDL-49257 grades: introduce calculation freeze
In order to prevent changes in the existing grades when we fix bugs
we are introducing the gradebook code versioning. Each course may
"freeze" the code version to the older date. Freezing is usually done
during upgrade or restore and can be removed by the teacher by pressing
the button and accepting potential grade changes. There is no visible
setting and not possible to change the version back manually.

See MDL-50432 and MDL-50522
2015-06-23 14:25:47 +08:00
Tony Levi
303936aa57 MDL-50453 core: Replace reserved word usage in progress\null (PHP7) 2015-06-15 12:21:27 +09:30
Dan Poltawski
77679fb2e5 Merge branch 'MDL-36957-master' of git://github.com/FMCorz/moodle 2015-06-02 11:07:57 +01:00
David Monllao
9b7c42eac7 Merge branch 'MDL-50344-master' of git://github.com/ankitagarwal/moodle 2015-05-26 17:29:22 +08:00
Ankit Agarwal
f987afbc2c MDL-50344 restore: Make restore file required 2015-05-25 12:02:16 +05:30
Martin Mastny
4ee052641e MDL-49493 backup: Implemented missing methods for anonymous backup 2015-05-25 10:35:11 +08:00
Eloy Lafuente (stronk7)
66d46d1534 MDL-50184 backup: Bump release to 3.0 2015-05-11 01:46:50 +02:00
Eloy Lafuente (stronk7)
15005d91f0 MDL-50102 versions: coding style cleanup. 2015-05-05 18:23:21 +02:00
Eloy Lafuente (stronk7)
26ea380d24 MDL-50102 versions: bump all versions and requires near release
version = planned 2015051100 release version
requires= current 2015050500 rc1 version

Note: On purpose, the course format social wrong version (2015102100)
has been kept unmodified. Looking forward a solution right now.
2015-05-05 17:43:19 +02:00
David Monllao
1f619e8d60 Merge branch 'MDL-42449' of git://github.com/andrewhancox/moodle 2015-04-28 10:11:17 +01:00
Andrew Hancox
baba473b24 MDL-42449 backup: Fix for activity grade category
Retain grade category when restoring an activity into the course that
it came from
2015-04-24 13:59:18 +01:00
Rajesh Taneja
0fe86bbdbb MDL-49799 behat: replaced asd.com with example.com
asd.com is a valid domain, we should use reserved domain names for testing
2015-04-20 11:21:20 +08:00
Dan Poltawski
9b67b43b21 Merge branch 'MDL-49755' of git://github.com/mr-russ/moodle 2015-04-14 17:45:56 +01:00
Dan Poltawski
69ab392306 Merge branch 'MDL-49756' of git://github.com/mr-russ/moodle 2015-04-14 15:32:15 +08:00
Dan Poltawski
0627d5802c Merge branch 'wip-MDL-45774-master' of git://github.com/abgreeve/moodle 2015-04-14 15:32:13 +08:00
Petr Skoda
e49cb057a1 MDL-49828 timezones: fix typos introduced by MDL-49684 2015-04-12 12:11:10 +12:00
Russell Smith
f08d1044b4 MDL-49756 course: Add unit tests for section_options. 2015-04-11 07:40:47 +10:00
Damyon Wiese
46a2fbc4b7 MDL-49412 Navigation: Remaining behat fixed for nav branch
Behat is passing after this change.

Part of MDL-45774.
2015-04-10 17:19:28 +08:00
Frederic Massart
725d18f980 MDL-36957 backup: Allow invalid setting level in backup info file 2015-04-09 17:33:52 +08:00
Petr Skoda
d6e7a63d9a MDL-49684 timezones: rewrite timezone support
This patch replaces all homegrown timezone
stuff with standard PHP date/time code.

The main change is the introduction of core_date
class that returns normalised user and server
timezones. From now on nobody should be using
$CFG->timezone or $user->timezone directly!

Other new features and fixes:
* admins are prompted for timezone during install
* editing of other users is finally fixed
* timezones are displayed in user profile
* new $this->setTimezone() in phpunit
* time locale is now automatically reset in phpunit
* timezone is now automatically reset in phpunit
* phpunit has Australia/Perth as default timezone
2015-04-06 13:53:51 +12:00
Russell Smith
9129827158 MDL-49755 backup: Cache backup information. 2015-04-05 20:03:08 +10:00
Dan Poltawski
a9feb0c48f Merge branch 'MDL-49595' of https://github.com/rlorenzo/moodle 2015-03-31 14:51:43 +01:00
Dan Poltawski
c157a42a7b Merge branch 'MDL-49547' of git://github.com/timhunt/moodle 2015-03-31 14:43:48 +01:00
Dan Poltawski
0ec875745a Merge branch 'MDL-49645_master' of git://github.com/markn86/moodle 2015-03-31 13:28:19 +01:00
Marina Glancy
4012617fb9 MDL-47337 course: merge section options during restore 2015-03-27 08:50:49 +08:00
Mark Nelson
16dfc32633 MDL-49645 core_backup: fixed 'expirythreshold' setting not being saved 2015-03-26 16:37:58 -07:00
Rex Lorenzo
7519d366ef MDL-49595 backup: Behat tests for importing groups/groupings
* Also fixed a missing required parameter for an Exception and some coding standards issues.
2015-03-26 09:04:37 -07:00
Tim Hunt
95ef9d8095 MDL-49547 question restore: avoid tag-related notices. 2015-03-26 15:31:36 +00:00
Eloy Lafuente (stronk7)
7962f73e51 MDL-49543 badges: minor tweaks
Fix restore to support old criteria not having descriptions.
Plus delete not-needed cast (now $params is always already array).
2015-03-25 01:37:33 +01:00
Yuliya Bozhko
fffeb03fe7 MDL-49543 badges: Add decription format and backup/restore
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-03-24 09:22:47 +13:00
Eugene Venter
96e339cc58 MDL-49356 restore: handle course completion if still not defined
Before this patch course completion only was restored if, appart from
other conditions... we were restoring to new course, never to existing
one.

This relaxes a bit that condition in order to be able to restore to an
existing course not having any course completion setting defined, so no
conflict will happen ever.
2015-03-17 00:34:09 +01:00
David Monllao
59aebbed70 MDL-48595 logstore: Replacing references to deprecated interfaces 2015-03-09 08:25:37 +08:00
Tim Price
91d10e7686 MDL-18177 backup: fixing PHPdocs errors 2015-02-20 11:45:23 +11:00
Tim Price
e1de40f7f7 MDL-18177 backup: adding PHPdocs blocks 2015-02-20 11:45:23 +11:00
Tim Price
d7891c83dd MDL-18177 backup: addressing coding standards 2015-02-20 11:45:23 +11:00
Matt Sammarco
5ef6f97f47 MDL-18177 availability: Excluding group members availability info
If setting was not enabled when backing up, exclude the availability
information of group members.
2015-02-20 11:45:22 +11:00
Matt Sammarco
868b086c4a MDL-18177 backup: Add backup option to include groups and groupings 2015-02-20 11:45:22 +11:00
John Okely
e7bcd2764a MDL-44520 behat: Change behat features to use new section selectors 2015-02-06 10:34:54 +08:00
Eloy Lafuente (stronk7)
16dafa5d9f Merge branch 'MDL-48266-master' of git://github.com/FMCorz/moodle
Conflicts:
	version.php
2015-01-26 19:19:35 +01:00
Frederic Massart
94b8c63635 MDL-48266 backup: Fix backup strorage misconfiguration
Basically if the destination dir is empty then the storage
type should be set to the course backup area. This does
not affect the behaviour of the backups that lived with
misconfigured settings.
2015-01-22 17:49:26 +08:00
Ray Bon
914cad8793 MDL-48837 phpunit: Restore system default timezone 2015-01-16 12:46:26 +08:00
Russell Smith
92996836d0 MDL-41674 backup: Use a trie for grouped path detection. 2015-01-11 12:54:32 +11:00
Andrew Nicols
dd1adc419f Merge branch 'MDL-48644_restoreLegacyLogs' of https://github.com/moodlerooms/moodle 2015-01-05 14:30:56 +08:00
Aaron Barnes
1151210154 MDL-40097 completion: Apply robust role detection to samesite restores. 2015-01-05 10:30:01 +08:00