Mark Nelson
5ca04d0ef1
MDL-18375 calendar: fixed issue when resaving the year in the datetime field causing the year to decrease
...
For example, a user may create a date/time profile field and set the 'Start year'
field to '2012'. Another user, using the Hijri calendar, may edit the name of
this field. They visit the settings page and in this case the date '1/1/2012'
is converted to '7/2/1433' in Hijri. So, the year '1433' is then displayed.
The user then changes the name of this field and saves the form. This is where
the issue occurs, as the date '1/1/1433' is converted into Gregorian, which
converts to the year '26/09/2011', so the year '2011' is saved in the DB, not
'2012'.
2013-09-05 18:32:16 +08:00
Mark Nelson
6eafa4ddba
MDL-18375 calendar: changed the name of the function factory to be more descriptive
2013-09-05 18:32:16 +08:00
Mark Nelson
df5d27d892
MDL-18375 calendar: only display the choice of calendar types if there is more than one
2013-09-05 18:32:16 +08:00
Mark Nelson
df01e4c748
MDL-18375 calendar: PHPDoc tidy up as well as some other minor changes
2013-09-05 18:32:16 +08:00
Mark Nelson
022745acd2
MDL-18375 calendar: implemented the usage of the recently introduced automatic class loading
2013-09-05 18:32:16 +08:00
Mark Nelson
84423bd9e5
MDL-18375 calendar: refactored the datetime user field so that it now uses the calendar type system
2013-09-05 18:32:15 +08:00
Mark Nelson
2f00e1b245
MDL-18375 calendar: huge refactor of the initial patch
...
1) Moved the calendar types location to a sub-folder in the calendar directory.
2) Removed/moved language strings.
3) Removed calendar types that should be downloaded as plugins.
4) Removed a Non-English language pack for the Gregorian calendar type that
should be downloaded separately.
5) Removed custom files responsible for checking for updates and uninstalling
calendar types, which should be done by core.
6) Removed JS from the calendar_month block as there is no non-JS alternative
provided and the JS written does not make use of the YUI library to ensure
multiple browser support.
7) Removed code from the base class responsible for creating timestamps that
are saved in the DB.
8) Added PHPDocs.
Note: In the original patch we are editing core functions responsible for saving
time in the database in the calendar base class. This is very dangerous, we do
not want to touch these functions as it could cause a complete fubar of the
database. There are places we are forcing the use of the gregorian calendar as
we are passing dates generated by the PHP date function, where as sometimes
we pass dates from usergetdate (which was being overwritten to return the
date specific to the calendar). We can not expect third party modules to
change the calendar type depending on the format they pass to these functions.
2013-09-05 18:30:05 +08:00
Shamim Rezaie
6dd59aabfa
MDL-18375 calendar: added multiple calendar support
...
Conflicts:
course/edit_form.php
lib/db/install.xml
lib/form/dateselector.php
lib/form/datetimeselector.php
lib/setup.php
2013-09-05 18:30:05 +08:00
Dan Poltawski
259dfc2521
Merge branch 'wip-MDL-41369-master' of git://github.com/marinaglancy/moodle
2013-09-04 11:09:30 +08:00
Eloy Lafuente (stronk7)
f82a082ae2
Merge branch 'MDL-41568-en_fix' of git://github.com/mudrd8mz/moodle
2013-09-03 15:12:19 +02:00
Helen Foster
86698a4c72
MDL-41568 Merge English strings from the en_fix language pack
2013-09-03 12:31:35 +02:00
Dan Poltawski
29db803ac7
Merge branch 'wip-MDL-41317-master' of git://github.com/marinaglancy/moodle
2013-09-03 10:40:28 +08:00
Rajesh Taneja
bb78e249cd
MDL-39961 Events: Replace Legacy events - User
...
This change includes:
* Added user_updated event, replacing old event
* Added user_created event, replacing old event
* Added user_deleted event, replacing old event
* Added user_loggedout event, replacing old event
* Added user_enrolment_created event, replacing old event
* Added user_enrolment_deleted event, replacing old event
* Added user_enrolment_updated event, replacing old event
2013-09-02 16:10:05 +08:00
Marina Glancy
b469e62a77
MDL-41317 Set correct context to send bulk message page
2013-08-26 17:41:43 +10:00
Marina Glancy
0e1bd87cc8
MDL-41369 Set proper context and navigation path for user messages
2013-08-26 17:32:57 +10:00
Damyon Wiese
74df2951d1
Revert "MDL-39876 Change get_record('course') calls to get_course"
...
This reverts commit ab7632b74c331540c90229bf03d13aa2e6bdd9be.
2013-08-21 13:42:30 +08:00
Nadav Kavalerchik
445d4cc065
MDL-40447 Administration: Fix translation: "Profile" should be "Profile Fields" on advanced (more...) user filter form
2013-08-17 23:30:39 +03:00
sam marshall
ab7632b74c
MDL-39876 Change get_record('course') calls to get_course
2013-08-15 11:31:20 +01:00
Sam Hemelryk
0b7e4a1474
Merge branch 'MDL-4908-m' of git://github.com/andrewnicols/moodle
...
Conflicts:
version.php
2013-08-14 09:15:00 +12:00
Andrew Nicols
3d4cf54820
MDL-4908 Forum: Add help for profile maildigest setting
2013-08-13 14:46:11 +01:00
Damyon Wiese
9ffa4cb3a6
MDL-22236 user webservice: add_user_private_files
...
Add webservice for adding files to user private files.
2013-08-08 12:05:40 +08:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Sam Hemelryk
b09abb05ab
Merge branch 'w32_MDL-40901_m26_phpunitcleanup2' of https://github.com/skodak/moodle
2013-08-06 08:53:24 +12:00
Petr Škoda
8252b7c291
MDL-40901 standardise core test case class and file names
...
This finally allows us to type only the class name when executing individual core test cases.
2013-08-04 22:10:31 +02:00
Rajesh Taneja
d9cfe855ac
MDL-40933 Administration: Added 'is after' and 'is before' to date filter
2013-07-30 15:45:09 +08:00
Eloy Lafuente (stronk7)
070a1bf23f
Merge branch 'w30_MDL-40809_m26_olduserimages' of https://github.com/skodak/moodle
2013-07-23 18:58:03 +02:00
Sam Hemelryk
d0ed9d6375
Merge branch 'MDL-40788-m' of git://github.com/andrewnicols/moodle
2013-07-23 11:12:34 +12:00
Petr Škoda
fb33dd9611
MDL-40809 remove after 10 years old default user images
2013-07-21 18:20:09 +02:00
Andrew Nicols
4a57ba7ebb
MDL-40788 Profile: Remove debugging code displayed on profile page
2013-07-19 15:21:04 +01:00
Mark Nelson
4e829d48d1
MDL-40468 libraries: removed usages of get_related_contexts_string() in core
...
Also tidied up the functions by removing unused parameters.
2013-07-19 15:17:50 +08:00
Frederic Massart
0d352dbcdd
MDL-40424 user: Incorrect use of named parameters
2013-07-17 11:52:47 +10:00
Eloy Lafuente (stronk7)
fb1788c598
Merge branch 'MDL-40424-master' of git://github.com/FMCorz/moodle
...
Conflicts:
admin/oacleanup.php
2013-07-17 01:21:51 +02:00
Petr Škoda
bd3b3bba9f
MDL-40220 use new core_component::get_plugin_list()
2013-07-16 22:36:11 +02:00
Frederic Massart
2e4c0c9181
MDL-40424 libraries: Deprecate context_instance_preload_sql()
2013-07-12 17:41:49 +08:00
Ankit Agarwal
db314f34fb
MDL-40425 libraries: Remove context_instance_preload() from core
2013-07-09 15:55:51 +08:00
Adrian Greeve
a327f25ef1
MDL-31776 - lib: Alternate name fields
...
Add support for additional name fields and flexible formating of
user names.
2013-07-09 11:45:50 +08:00
Ankit Agarwal
0601e0eef6
MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
2013-07-04 15:41:06 +08:00
Eloy Lafuente (stronk7)
3c2e7a0e7c
Merge branch 'MDL-34472-master' of git://github.com/ankitagarwal/moodle
...
Conflicts:
lib/upgrade.txt
2013-07-02 14:09:11 +02:00
Ankit Agarwal
bea86e845e
MDL-34472 libraries: Remove usage of get_context_instance() from core
2013-07-01 15:40:37 +08:00
Sam Hemelryk
4d6f35cefa
MDL-19390 user: fixed typo during integration
2013-07-01 09:16:59 +12:00
Petr Škoda
483b680413
MDL-19390 add new option to send password to new users
2013-06-30 11:10:17 +02:00
Matteo Scaramuccia
243ab45c16
MDL-40200 Administration: Return the invalid user message and stop there
...
To avoid adding duplicate code, 'invalid user' and 'user deleted' checks
have been merged together.
2013-06-22 09:54:30 +02:00
Sam Hemelryk
ad3d3c2ba7
Merge branch 'MDL-40036-master' of git://github.com/FMCorz/moodle
2013-06-18 14:01:54 +12:00
Sam Hemelryk
007b5f5f35
Merge branch 'MDL-30132_master' of git://github.com/lazydaisy/moodle
2013-06-18 10:27:11 +12:00
Sam Hemelryk
ca64174031
Merge branch 'MDL-21933_master' of https://github.com/mr-russ/moodle
2013-06-17 15:45:56 +12:00
Russell Smith
d6e52b0061
MDL-21933 course: Allow users to search participants course permission
...
Capability checks are performed at the top of the page and do not need
to be completed again.
Search is an expected feature for users and it was confusion to only
appear after 3 pages. This has been changed to enable search when
there are more records than are visible on the screen. If users
are unable to use browser search, they will be able to use Moodle's
search.
2013-06-13 12:44:55 +10:00
Mary Evans
fb6bf33bf7
MDL-30312 User: Changed page layout from mydashboard to mypublic in user/profile.php
2013-06-12 13:29:45 +01:00
Sam Hemelryk
11ea436f4f
Merge branch 'MDL-26925-master' of git://github.com/danpoltawski/moodle
2013-06-11 17:31:51 +12:00
Dan Poltawski
12313d6125
MDL-26925 User selector: Set label when no results
...
Thanks to Jonathon Fowler for the fix!
2013-06-06 14:07:27 +08:00
Frederic Massart
a8584cd6e5
MDL-40036 user: Respect capability to ignore user quota
2013-06-06 12:41:26 +08:00