5570 Commits

Author SHA1 Message Date
nicolasconnault
b39b58fe45 MDL-11433 Correcting non-null and default value (Default will be NULL) 2007-09-25 09:47:40 +00:00
nicolasconnault
52cb2e4716 MDL-11433 Added decimals field to grade_items table 2007-09-25 08:35:16 +00:00
nicolasconnault
1796708d81 Replacing GRADE_REPORT_GRADE_DISPLAY_TYPE... by GRADE_DISPLAY_TYPE... 2007-09-25 08:22:20 +00:00
stronk7
28271c7205 Second pass. Some more default comments are out. MDL-11385 2007-09-24 22:10:13 +00:00
mattc-catalyst
acf000b077 MDL-11419 - groups: interface enhancements + new features:
* Display the grouping a course module belongs to on the course page - for course managers only.
    * When adding users to groups, display the groups a user already belongs to.
    * Added an overview report that shows groupings, groups and members for a course.
    * Added a dialogue to automatically create groups and assign members based on either the number of desired groups or the number of desired users per group.
2007-09-24 21:55:15 +00:00
skodak
535c0080c3 MDL-10781 reimplemented tags upgrade code: uses recordsets; no calls to tag/lib.php functions - those would break if we changed db structure; no ordering in blog tags - we did not respect the tag order before, this way it is much faster 2007-09-24 19:18:48 +00:00
stronk7
7529139a8d First pass. Deleting some default comments. MDL-11385 2007-09-24 19:08:00 +00:00
skodak
a075996572 fixed notice during upgrade from 1.8 2007-09-24 19:00:39 +00:00
skodak
6db001b535 MDL-11413 revisited 2007-09-24 15:24:21 +00:00
urs_hunkler
c7a66cc4e1 MDL-11370 :: added a global var $THEME->customcornersopen to track properly closed custom corners divs. In function print_footer I added a check if some custom_corneres divs are still open and eventually close them. 2007-09-24 11:08:02 +00:00
ikawhero
540286f1f2 Fixing typo. 2007-09-24 03:02:16 +00:00
skodak
b0eb99121f MDL-11417 usermodified now stored properly in grade_grades table when update_(raw|final)_grade() used 2007-09-23 15:57:36 +00:00
skodak
353f3f2037 MDL-11416 support for nonsortable columns in table lib 2007-09-23 15:54:33 +00:00
skodak
a3fbd4943d MDL-11357, MDL-11358 adding formating of numeric final grade (for now takes the setting from user report), adding usermodified field to returned grading info 2007-09-23 15:51:21 +00:00
skodak
5b242699b7 MDL-11415 imported htmlpurifier 2.1.2 2007-09-23 15:47:26 +00:00
skodak
09c42a363d MDL-11413 improved text cleaning (problem reported by Andreas Nolden) 2007-09-23 12:28:03 +00:00
skodak
4b533b2791 MDL-11413 improved text cleaning (problem reported by Andreas Nolden) 2007-09-23 12:20:29 +00:00
skodak
bff475e412 overridden flag is now used to track the last time of modification - going to use it in assignments to print the correct time/date 2007-09-22 21:39:28 +00:00
skodak
fcac8e513a MDL-11357, MDL-11358 cleanup and improvements in public grade API - new function grade_get_grades() that returns all grading information (grade item data, outcomes and user grades); other minor improvements and bugfixes; updated assignment to use new grade API 2007-09-22 20:21:44 +00:00
skodak
9f01047ae9 MDL-11363 minor doc improvement 2007-09-22 18:50:46 +00:00
skodak
3ab3dfd562 MDL-11363 fixing defaults of new optional fields of grade classes - now properly applied when creating new instances too 2007-09-22 18:46:51 +00:00
skodak
3f2b0c8aba MDL-11363 merged tables grade_grades with grade_grades_text - it is now possible to define fields as required and optional
finally fixed formula validation in calculation edit form
2007-09-22 11:39:59 +00:00
stronk7
8cf6cb9018 Now XML strict headers are controlled by new setting
(xmlstrictheaders) separating it from debug->developer. MDL-11216
2007-09-21 17:28:16 +00:00
nicolasconnault
caa0886a9d MDL-11351 Removed a redundant check for a multiLang JS variable 2007-09-21 09:13:02 +00:00
stronk7
5cf8d1d9fc temp table usage is out and now we are using the
new permanent context_temp table. Update for
Oracle added, extra NOT EXISTS cluse to avoid
insertion of duplicate records in potential
concurrency and minor refinements. MDL-11347
2007-09-21 08:52:43 +00:00
stronk7
d5d2f8a6f0 Adding the new context_temp permanet table to be used
by build_context_path() . MDL-11347
2007-09-21 08:48:51 +00:00
moodler
bac6d28a6f Fixed the definition of SYSCONTEXTID when it's not 1 (like moodle.org) 2007-09-21 04:55:14 +00:00
moodler
7e17f43b1c Just a small change to make this function a bit more robust, there's still a bug here though 2007-09-21 04:33:50 +00:00
nicolasconnault
bfbfdb5350 MDL-11350 allowvisiblecoursesinhiddencategories was not used fully in the determination of the course's visibility 2007-09-20 13:15:26 +00:00
skodak
4bf0d891f9 removing bosoleted unit tests: manual grade items do not use item numbers, id number is not generated automatically 2007-09-20 12:30:24 +00:00
skodak
d3f24f5534 fixed short php tag 2007-09-20 12:26:58 +00:00
jmg324
874851f610 MDL-10296 made print_user_picture cater for https possibility in user/edit 2007-09-20 09:18:24 +00:00
toyomoyo
05a71b3341 change restore code to use the more efficient get_user_courses_bycap 2007-09-20 09:16:49 +00:00
skodak
eedae98ef2 MDL-11357 removed _grade_updated() from activities and grade_item class 2007-09-20 07:43:57 +00:00
skodak
ecbf2954da MDL-11347 adding comments with description of UPDATE related problems; minor whitespace and coding style changes 2007-09-20 07:37:50 +00:00
martinlanghoff
85cab9d8cd eaccelerator: never set the mode if we failed to init 2007-09-20 06:51:13 +00:00
moodler
0b9dcf3df4 Bumping the date and the context path upgrade in case anyone was stuck from yesterday MDL-11347 2007-09-20 06:47:14 +00:00
martinlanghoff
78c3ec2fe8 Revert - dmllib: check $MCACHE->status() before using it 2007-09-20 06:45:29 +00:00
martinlanghoff
369a572502 dmllib: check $MCACHE->status() before using it 2007-09-20 06:42:57 +00:00
moodler
bb2c22bda5 I renamed these to help general readability of accesslib:
$ad -> $accessdata
    has_cap_fad ->  has_capability_in_accessdata()
    aggr_roles_fad  -> aggregate_roles_from_accessdata()

Resolves MDL-11173
2007-09-20 04:52:54 +00:00
martinlanghoff
21f10eb03e accesslib: load_all_capabilities() - remember to check_enrolment_plugins()!
When setting up accessdata for a newly-logged-in user, call the
enrolment plugins. Thanks to Matt Clarkson for the heads up.

Affects: MDL-11180
2007-09-20 03:23:12 +00:00
toyomoyo
ba82dd3134 group should probably be passed into get_role_users() 2007-09-20 03:11:51 +00:00
martinlanghoff
55a814399f accesslib:build_context_path() refer to dbfamily instead of dbtype
so mysql's various drivers can be used.
2007-09-20 02:45:57 +00:00
toyomoyo
163a5eee2c MDL-11356, set display of grade items to database default (-1) 2007-09-20 02:39:25 +00:00
martinlanghoff
d20559f3e4 accesslib: build_context_path() - better UPDATE SQL
A bit of cleanup on the SQL we use for updates. Unfortunately, MySQL
uses non-SQL-standard syntax for updates reading or updating multiple
tables. After much testing across Pg and MySQL, I boiled it down to
the minimal differences -- but we still have different SQL.

The timings for this on a large reference install, calling
build_context_path(true):

 - MySQL incompatible 1s
 - Petr's fixes 60s -- DB complains of too many writes
 - This commit 24s  -- DB complains of too many writes

Also - fixed a remaining problem with $emptyclause

Affects MDL-11347
2007-09-20 01:03:35 +00:00
martinlanghoff
92b34bdd6c accesslib:build_Context_path() fix $emptyclause
We need 2 different empty clauses, one for updates, anotherone for
selects.
2007-09-20 00:16:22 +00:00
martinlanghoff
413a19dd4c accesslib:build_context_path() - fix $emptyclause to avoid Oracle's dirty hack
accesslib is now clean of Oracle's dirty hack. Thanks Eloy for the idea.

MDL-11347
2007-09-19 23:46:37 +00:00
stronk7
351e55fba6 Delete one excess parenthesis... Applying Bryce's patch to MDL-11347 2007-09-19 22:40:58 +00:00
skodak
203d964a4a MDL-11347 yet more beautification proposed by Eloy 2007-09-19 19:20:18 +00:00
skodak
b37453d73d MDL-11347 yet more beautification proposed by Eloy 2007-09-19 19:13:49 +00:00