Commit Graph

23 Commits

Author SHA1 Message Date
Michael Brown 37fdff573b MDL-60115 mod_book: Book Resource Cancel Button Redirect Bug
When the user creates a book but adds no chapters, hitting cancel on
 the chapter creation page would redirect you right back to the same
 page with no explanation. This solution redirects to the course page
 when canceling chapter creation when no chapters are present.
2018-04-02 04:01:34 +00:00
Marina Glancy aef1e7f500 MDL-57457 mod_book: Chapters are not userdata plus some improvements 2017-04-21 10:06:09 +08:00
Andrew Hancox 0e8c334eb5 MDL-57457 mod_book: Fix bug with edit form when tagging disabled 2017-04-21 10:06:08 +08:00
Andrew Hancox 0178314682 MDL-57457 mod_book: Implement tagging 2017-04-21 10:06:08 +08:00
Andrew Nicols d93c3b6890 MDL-56293 mod_book: Add ToC block in chapter edit/deletes 2016-10-06 15:43:03 +08:00
Russell Smith 1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Petr Skoda ef2a9ece71 MDL-45144 convert book events to create_from_xxx() helpers 2014-04-17 14:29:31 +08:00
Petr Skoda 98cb244de1 MDL-45144 delete duplicated legacy log entries in mod_book
The general agreement is we should trigger one event
per simple action.

This partially resolves MDL-39963.
2014-04-17 13:30:30 +08:00
Marina Glancy f2f7065895 MDL-44321 events: make sure the full object is passed to add_record_snapshot in book 2014-03-05 11:01:19 +08:00
Frederic Massart 7f6e3eefd1 MDL-40060 mod_book: Replace add_to_log with events 2013-10-08 14:11:10 +08:00
Rossiani Wijaya d8a6d49c5f MDL-40686 book: fix heading level and styling 2013-09-09 09:46:27 +08:00
Damyon Wiese 74df2951d1 Revert "MDL-39876 Change get_record('course') calls to get_course"
This reverts commit ab7632b74c.
2013-08-21 13:42:30 +08:00
sam marshall ab7632b74c MDL-39876 Change get_record('course') calls to get_course 2013-08-15 11:31:20 +01:00
prateeksachan 6b693ce8d3 MDL-40386: Fix for updating timemodified field in book_chapters 2013-07-01 14:29:10 +05:30
Mohamed Alsharaf 8e484df3a6 MDL-40091 book: revision must be incremented after editing a chapter 2013-06-14 21:19:48 +12:00
Ankit Agarwal d3bf90ae04 MDL-34274 book: Adding ability to log chapter updates 2012-10-11 11:46:15 +08:00
Tõnis Tartes 5b7e511ea8 MDL-33121 Book Module: performed minor changes and cleanup for the module 2012-06-13 15:28:07 +08:00
Rossiani Wijaya b15ef0b058 MDL-33121 Book Module: Fixed documentation header 2012-06-13 15:25:23 +08:00
Eloy Lafuente (stronk7) 9717aa2ddd MDL-32709 book: delete some not needed stuff 2012-05-21 01:26:52 +02:00
Eloy Lafuente (stronk7) 29656fe24b MDL-32709 book: coding style, deprecated and minor fixes 2012-05-20 21:47:58 +02:00
Eloy Lafuente (stronk7) 1fc9e895ef MDL-32709 book: replace some deprecated stuff. Some pending yet, blame $PAGE 2012-05-20 21:47:50 +02:00
Eloy Lafuente (stronk7) 3542c4f4a9 MDL-32709 book: general comments and phpdocs cleanup 2012-05-20 21:47:29 +02:00
Eloy Lafuente (stronk7) e81c01b676 Subtree merged git://github.com/skodak/moodle-mod_book.git (master branch) into mod/book 2012-05-20 21:43:40 +02:00