Commit Graph

94 Commits

Author SHA1 Message Date
Marina Glancy 97f240e7b6 Merge branch 'MDL-38065-fix-27' of git://github.com/jmarthaler/moodle into MOODLE_27_STABLE 2014-10-20 14:08:34 +08:00
Jon Marthaler 4fab973d4b MDL-38065 gradebook: Fix issue with hidden categories breaking rowspan.
Hidden subcategories break the rowspan in the gradebook; this fix corrects
the calculation of the rowspan.
2014-10-16 22:26:45 -05:00
Damyon Wiese 78c55e13a2 MDL-46997 Grades: Fix aggregation when hiding is excluded and items have nested dependencies
Includes a unit test for the dependency flattening function.
2014-09-09 14:02:13 +08:00
Eloy Lafuente (stronk7) 44088a5aeb Merge branch 'wip-MDL-46874-m27' of git://github.com/marinaglancy/moodle into MOODLE_27_STABLE 2014-08-25 22:11:17 +02:00
Marina Glancy 5f690a9be6 Merge branch 'MDL-43197-27-2nd' of git://github.com/FMCorz/moodle into MOODLE_27_STABLE 2014-08-19 13:26:01 +08:00
Marina Glancy 7c4e3db7c0 MDL-46874 gradereport: replace usage of class hidden with dimmed_text 2014-08-19 12:56:11 +08:00
Frederic Massart 01327cfcf5 MDL-43197 gradereport_user: Parents/mentors can see all the relevant grades 2014-08-19 10:48:11 +08:00
Damyon Wiese 5e33ee65e5 MDL-35984 grade: Recalculate min/max for sum of grades when hidden grades are involved. 2014-08-11 14:22:27 +08:00
sam marshall 8d1f33e122 MDL-44070 Conditional availability enhancements (6): core changes
Changes core code to use new API instead of the old one when
checking user access to activities and sections.

Includes changes to other libraries that are necessary after
adding the availability system and removing old conditional tables
etc.
2014-04-07 20:11:48 +01:00
Adrian Greeve 1301a07a3e MDL-31597 gradebook: Removed the percentage symbol from weights in the gradebook. 2014-01-14 11:59:01 +08:00
Damyon Wiese 1196cc4d28 MDL-30852 grade report: More coding guideline cleanups. 2013-08-05 11:23:29 +08:00
Damyon Wiese e1e9ade581 MDL-30852 grade: Coding style fix for user report. 2013-08-02 14:40:23 +08:00
Steve Bader f19dd840ff MDL-30852 grade report: Add aria attributes
Converted to git branch by Damyon
2013-08-02 13:57:27 +08:00
Tim Hunt 9e1fe42150 MDL-40854 fix mod/...:view capabilities
Prior to the fix, if you did not have a capability like mod/page:view,
then you woulds still see the link to the Page activity in the course
section, but when you clicked on it, you would run into a
require_capability error.

It is a principle that we never show users a link to a page they are not
allowed to access, therefore, when users do not have mod/...:view, they
should not see the link on the course page.

This patch implements this in the cm_info class, in a similar way to how
access restrictions by groups works.

It does not assume that the mod/...:view capability exists. If the
capability does not exist, then users are not prevented from seeing the
link.
2013-07-26 11:44:43 +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
Andrew Davis 5df9bc3998 MDL-37475 core_grade:fixed the handling of show totals 2013-05-08 10:38:20 +12:00
Andrew Davis 10d8f0852b MDL-33117 grade: adding unit tests for the user report function inject_rowspans() 2013-01-07 11:57:04 +08:00
Andrew Davis 5e76227126 MDL-35762 core_grade: altered the code that determines whether an activity is visible on the user report 2012-11-05 09:35:10 +08:00
Dan Poltawski f7e8f312ca Revert "MDL-33117 grade: added some smarts to the user report method inject_rowspans() to deal with activity conditional availability"
This reverts commit 69c8bcec70.
2012-10-05 16:21:14 +08:00
Dan Poltawski 229f543881 Merge branch 'MDL-33117_grade_display' of git://github.com/andyjdavis/moodle 2012-10-02 09:32:58 +08:00
Andrew Davis 69c8bcec70 MDL-33117 grade: added some smarts to the user report method inject_rowspans() to deal with activity conditional availability 2012-09-28 12:06:44 +08:00
Frederic Massart 5fee56d5c3 MDL-34931 core_grade: Fixed grades hidden when activity is hidden 2012-09-28 11:39:46 +08:00
Adrian Greeve d40604724b MDL-34463 - lib - Alteration of the get_context_instance function to utilize the new function context_XXXX::instance(). 2012-07-24 14:04:40 +08:00
Sam Hemelryk 49ddf4195c MDL-31510 grader report: Fixed whitespace 2012-04-30 12:13:00 +12:00
Andrew Davis aee748d32c MDL-31510 grade: made the user report observe $cm->uservisible so that activities not available to a student because of groups do not appear on their user report 2012-04-26 16:31:56 +07:00
Andrew Davis 62a966ada0 MDL-31841 grade: prevented the feedback column on the user report from being centered 2012-03-08 15:19:17 +07:00
Andrew Davis a153c9f2fe MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
andrew d3e303470d MDL-27703 gradebook: altered an sql query in the user report. join with no on clause causes an error in some DBs 2011-11-16 09:56:46 +08:00
Marina Glancy c97933ffa3 MDL-30161: link from gradebook (grading analysis) only appears now in Grader report but for all items; in User report the link under activity name contains userid 2011-11-08 14:09:50 +08:00
David Mudrak 0455c99864 MDL-29920 User report may display the grade analysis link, too
The original idea was to use the link in the row header (the activity
link). However, for both unified user experience and the overall patch
design reasons, I finally decided not to alter the activity link but to
append the analysis icon. The user experience should be the same as in
the grader report.
2011-11-03 13:51:45 +01:00
Andrew Davis (andyjdavis) 656d17c2c6 gradebook MDL-20946 fixed average calculation where users have multiple gradeable roles 2011-04-04 11:35:47 +02:00
Eloy Lafuente (stronk7) cc65dc366d MDL-25708 recordsets - found one more recent use. fixed. 2011-01-30 13:43:06 +01:00
Sam Hemelryk a1e26b5e46 gradebook MDL-20617 Fixed SQL formatting 2011-01-18 17:17:14 +08:00
andyjdavis a071dbb66b gradebook MDL-20617 added more control over what columns are displayed on the user report 2011-01-18 17:13:06 +08:00
Sam Hemelryk 367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
Inaki d09cad434b grade/report: MDL-21001 Gradebook shows ranges always
We unconditionnally set them to visible, ignoring configured settings.
Fix it.
2010-11-01 10:24:21 +00:00
Petr Skoda 4d27bc7929 fixed phpdocs and using property_exists() which is required by PHP 5.3 2010-09-17 19:05:23 +00:00
Petr Skoda b5e7b2bf2b MDL-23071 standardising gradebook plugin names
AMOS BEGIN
 MOV [modulename,gradeimport_csv],[pluginname,gradeimport_csv]
 MOV [modulename,gradeimport_xml],[pluginname,gradeimport_xml]
 MOV [modulename,gradeexport_ods],[pluginname,gradeexport_ods]
 MOV [modulename,gradeexport_txt],[pluginname,gradeexport_txt]
 MOV [modulename,gradeexport_xls],[pluginname,gradeexport_xls]
 MOV [modulename,gradeexport_xml],[pluginname,gradeexport_xml]
 MOV [modulename,gradereport_grader],[pluginname,gradereport_grader]
 MOV [modulename,gradereport_outcomes],[pluginname,gradereport_outcomes]
 MOV [modulename,gradereport_overview],[pluginname,gradereport_overview]
 MOV [modulename,gradereport_user],[pluginname,gradereport_user]
AMOS END
2010-07-04 13:08:11 +00:00
David Mudrak 1cc3165e18 MDL-21695 Replaced grade/showrank.html
AMOS BEGIN
 MOV [configshowrank,core_grades],[showrank_help,core_grades]
 HLP grade/showrank.html,[showrank_help,core_grades]
AMOS END
2010-06-25 17:19:34 +00:00
David Mudrak ff268dcb28 MDL-21695 Replaced grade/showpercentage.html
AMOS BEGIN
 MOV [configshowpercentage,core_grades],[showpercentage_help,core_grades]
 HLP grade/showpercentage.html,[showpercentage_help,core_grades]
AMOS END
2010-06-21 08:39:27 +00:00
David Mudrak 69e3e962b1 MDL-21695 Replaced grade/showhiddenitems.html
AMOS BEGIN
 MOV [configshowhiddenitems,core_grades],[showhiddenitems_help,core_grades]
 HLP grade/showhiddenitems.html,[showhiddenitems_help,core_grades]
AMOS END
2010-06-21 06:57:46 +00:00
David Mudrak 0459cc4d9e MDL-21695 Replaced grade/hidetotalifhiddenitems.html
AMOS BEGIN
 HLP grade/hidetotalifhiddenitems.html,[hidetotalifhiddenitems_help,core_grades]
AMOS END
2010-06-07 09:56:33 +00:00
Andrew Davis 1762a2642a gradebook MDL-21514 Ironed out a bug with hiding course totals 2010-02-12 03:39:40 +00:00
Andrew Davis 61541a5a46 gradebook MDL-21218 Improved the hiding/displaying of category and course totals when they contain hidden items 2010-02-08 06:27:04 +00:00
Andrew Davis a83507f284 grader report MDL-21270 Use constants instead of integers 2010-01-08 07:48:37 +00:00
Petr Skoda 6c3ef4103a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:11:29 +00:00
samhemelryk 91152a3518 navigation MDL-20216 Refactored add arguments
Moved $action argument from arg5 to arg2
2009-09-04 03:12:01 +00:00
nicolasconnault c018f97328 MDL-19797 Migrated calls to print_heading 2009-08-06 08:16:46 +00:00
nicolasconnault e060e33dc3 MDL-19727 Replaced boilerplates and removed ID tags. Merged from MOODLE_19_STABLE 2009-07-07 02:26:36 +00:00
nicolasconnault ec3f20419a MDL-19583 Showing outcomes in user report if enabled at site level. Merged from MOODLE_19_STABLE 2009-06-23 00:38:29 +00:00