Mark Nelson
fcb30f64f9
MDL-51782 mod_forum: altered unit tests for the post_deleted event
...
This was done to ensure we are actually testing the API, and not
just creating and triggering the event manually.
2015-10-14 18:54:29 -07:00
Mark Nelson
9f468b1b31
MDL-51782 mod_forum: moved post_deleted event into function
2015-10-14 18:21:28 -07:00
David Monllao
ee58df52da
Merge branch 'MDL-46455-master-20151012' of git://github.com/damyon/moodle
2015-10-13 11:42:40 +08:00
Juan Leyva
5b587c7570
MDL-51565 webservice: Fix return types definitions
...
This commit also format the activity name via external_format_string in
some cases
2015-10-12 13:24:49 +02:00
David Monllao
fd47ef44bd
Merge branch 'MDL-51637-master' of git://github.com/jleyva/moodle
2015-10-12 17:08:27 +08:00
Juan Leyva
4f3a2d2103
MDL-51637 forum: Make forum_get_discussions_paginated return group post
2015-10-12 10:08:17 +02:00
Andrew Nicols
fe26df5ec9
MDL-49682 mod_forum: Correct arguments to format_message_text
...
This feeds straight into context_module::instance() and I was inadvertantly
using the forum->id, rather than the cm->id.
2015-10-12 14:54:34 +08:00
David Monllao
1c94483300
MDL-49682 mod_forum: Bump version for caches
2015-10-12 14:07:55 +08:00
Andrew Nicols
317938393c
MDL-49682 mod_forum: Build forum email templates
2015-10-12 13:26:29 +08:00
Frederic Massart
583b02e405
MDL-51664 external: Update usage of external_util::validate_courses
2015-10-12 12:01:15 +08:00
Mark Nelson
0bfafc5ba0
MDL-46455 mod_*: added restore mapping to events
2015-10-11 18:14:57 -07:00
Mark Nelson
ef15eae433
MDL-46455 mod_*: added additional mapping to be used by events
2015-10-11 18:14:56 -07:00
Adam Olley
a7d95e4e65
MDL-51285 mod_forum: Posts all need to have different stamps
2015-10-08 12:21:36 +08:00
David Monllao
de27cf6a3f
Merge branch 'wip-mdl-51285' of git://github.com/rajeshtaneja/moodle
2015-10-07 11:22:56 +08:00
Eloy Lafuente (stronk7)
cb171682ff
Merge branch 'MDL-49823-master' of git://github.com/jleyva/moodle
2015-10-07 01:08:52 +02:00
Juan Leyva
d85bedf796
MDL-49823 webservice: Support gravatar profile images
2015-10-01 09:36:31 +02:00
Eloy Lafuente (stronk7)
9fb434a618
Merge branch 'wip-mdl-51266' of https://github.com/rajeshtaneja/moodle
2015-09-30 20:34:33 +02:00
Adam Olley
dba0fdc2bc
MDL-9070 forum: Add margin in rtl mode to timed post icon
...
As the icon has a float on it to move it to the right, a margin-top
needs to be applied to keep it aligned the same as in ltr.
2015-09-30 12:27:12 +08:00
David Monllao
8e31c017f2
MDL-9070 mod_forum: Reducing it to a single scenario
2015-09-30 10:09:03 +08:00
David Monllao
15791dffac
Merge branch 'MDL-9070' of git://github.com/aolley/moodle
2015-09-30 09:29:55 +08:00
Adam Olley
05f1455b35
MDL-9070 forum: Show timed post display period
...
This adds the following changes when viewing a list of discussions and
forum_enabletimedposts is turned on.
* Discussions a student wouldnt see right now are dimmed (timestart in
future or timeend in the past).
* A icon appears next to the discussion subject, the tooltip for this
icon displays the display start and/or end time. This only appears for
the user that made the discussion or has permission to
viewhiddentimedposts.
These two changes achieve a couple of important things, namely, teachers
will not mistakenly think their students can see a discussion when
viewing the list if they've later forgot that they set a time limit on
it (or indeed if someone else put it on their discussion without them
realising). Additionally it makes it easy to see from the list when
different discussions are set to be released without having to go in and
edit them to find out.
Change-Id: Ia1818b33c00adae0dad72df8e170a078fb66cd76
2015-09-30 09:18:31 +09:30
Dan Poltawski
158cc03737
Merge branch 'MDL-50109-master-blogsort' of https://github.com/mudrd8mz/moodle
2015-09-28 10:44:47 +01:00
rajesh Taneja
5ecf8e8f21
MDL-51266 unittest: replaced low level phpunit_util calls
2015-09-23 15:42:48 +08:00
Juan Leyva
ea5b910b3a
MDL-51413 forum: Return additional field in get_forums_by_courses WS
2015-09-18 17:27:14 +02:00
David Monllao
742548e251
Merge branch 'wip-mdl-51101' of git://github.com/rajeshtaneja/moodle
2015-09-14 16:18:01 +08:00
Andrew Nicols
7267daa8d0
MDL-50994 mod_forum: Correct docs for discussion WS
2015-09-14 15:43:26 +08:00
Andrew Nicols
08a4dbfe10
Merge branch 'MDL-50994-master' of git://github.com/jleyva/moodle
2015-09-14 15:40:05 +08:00
David Monllao
14face570f
Merge branch 'MDL-51253_forum_urls' of git://github.com/BenKelada/moodle
2015-09-14 13:06:38 +08:00
Ben Kelada
3d8d8a8ca6
MDL-51253 forum: fix urls for exceptions and redirects
2015-09-14 14:18:50 +10:00
Juan Leyva
7ab43ac84a
MDL-50994 mod_forum: New Web Service mod_forum_add_discussion
2015-09-11 13:31:36 +02:00
Rajesh Taneja
1a5a476b03
MDL-51101 behat: Fixed wrong hover step usage
...
Hover step was being mis-used for checking activity completion
This is replaced with proper step which check for img element
2015-09-10 14:46:12 +08:00
Juan Leyva
43ff833def
MDL-50995 mod_forum: Fix WS to not rely in the DB ordering defaults
2015-09-09 12:59:53 +02:00
Andrew Nicols
d3d8f81caa
MDL-50995 mod_forum: Coding style fixes
2015-09-09 16:16:43 +08:00
Andrew Nicols
edf84ada39
Merge branch 'MDL-50995-master' of git://github.com/jleyva/moodle
2015-09-09 16:03:05 +08:00
Ankit Agarwal
731c2712e7
MDL-50173 ratings: Use proper checks to ensure ratings are viewable.
...
Mainly to verify groups visibility this new callback has been created.
Note this was originally 3 commits but for amending purposes they have
been squashed.
2015-09-09 04:07:21 +02:00
rajesh Taneja
5d38a5cd33
MDL-51285 mod_forum: Discussion post should not have same time stamp
...
Discussion post are sorted by timemodified
if they have same timemodified then results
will be random
2015-09-03 15:33:23 +08:00
Juan Leyva
50a2031712
MDL-50995 mod_forum: New WS mod_forum_add_discussion_post
2015-09-02 12:20:06 +02:00
Dan Poltawski
522c7fd350
Merge branch 'MDL-45841' of git://github.com/timhunt/moodle
2015-09-01 10:14:45 +01:00
David Mudrák
3920ad93e2
MDL-50109 forum: Add behat tests for posts ordering
2015-08-31 09:55:02 +02:00
David Mudrák
8d960707c4
MDL-50109 forum: Add unit tests for the forum_get_discussion_neighbours
...
The added tests are variants of existing tests for blog-like forums.
2015-08-31 09:55:02 +02:00
David Mudrák
9e381efd1f
MDL-50109 forum: Respect chronological order of blog posts in prev/next
...
The function forum_get_discussion_neighbours() is used to generate links
to neighbour discussions. I had to change the signature of the function
to have access to the forum's type without the need to re-read it from
the database in additional query.
The SQL query for blogs is a variant of the existing query, just using
the first post's creation time instead of the discussion's timemodified
time.
2015-08-31 09:55:02 +02:00
David Mudrák
8d032f59f4
MDL-50109 forum: Display blog posts in reverse chronological order
2015-08-31 09:55:01 +02:00
Tim Hunt
924db7109c
MDL-45841 forum: show unread posts on blog-style forum front page
2015-08-24 21:44:56 +01:00
Andrew Nicols
bff7570e87
MDL-50714 mod_forum: Add tests for all groupmodes
2015-08-21 08:19:29 +08:00
Andrew Nicols
344e126378
MDL-50714 mod_forum: Correct use of movedicussions cap when posting
...
The ability to view the group dropdown was too closely related to the
movediscussions capability when posting, or editing a forum post.
The movedicussions capability should only be considered for some parts of
this logic. Users should be able to select the group to post to when
writing message, as long as they have access to that group.
2015-08-21 08:18:46 +08:00
David Monllao
5e8a03b429
Merge branch 'MDL-51088-master' of git://github.com/andrewnicols/moodle
2015-08-17 09:24:55 +08:00
David Monllao
fd76204a8b
Merge branch 'MDL-51100-master' of git://github.com/andrewnicols/moodle
2015-08-17 08:50:49 +08:00
Andrew Nicols
711b1d6b3e
MDL-51100 behat: Remove javascript tag from usermenu steps
...
These tests only needed the javascript tag because of the user menu.
Now that issue has been resolved, they do not need it.
Note: Some were also not using the singleselect feature, so would fail
without changes to use this too as they were not handling proper selection
of the singleselect element.
2015-08-14 08:52:29 +08:00
Andrew Nicols
2e782e5142
MDL-51088 mod_forum: Improve mod_forum behat performance
2015-08-14 07:58:13 +08:00
David Monllao
819ab257f7
Merge branch 'MDL-46321-master' of git://github.com/tonyjbutler/moodle
2015-08-12 08:49:14 +08:00