1. 15 Nov, 2017 1 commit
  2. 05 Dec, 2016 1 commit
  3. 25 Oct, 2016 1 commit
    • Damyon Wiese's avatar
      MDL-56006 theme: Set Boost as the default theme · e56b58e3
      Damyon Wiese authored
      Units tests have been adjusted e.g. 'boost' instead of 'clean' in pix urls.
      
      Some places I didn't update the test to reflect the boost markup and reset
      the theme to clean. This is because the test was not testing the markup - but the
      functionality (e.g. looking for specific structures to indicate an error in a form element).
      e56b58e3
  4. 21 Oct, 2016 1 commit
  5. 19 Feb, 2016 1 commit
  6. 22 Jan, 2016 1 commit
    • David Mudrák's avatar
      MDL-52873 forms: Generate unique id attributes for modgrade elements · d84c64b7
      David Mudrák authored
      The previous method of generating the id attribute of the elements
      within the modgrade group did not take the name of the modgrade field
      into account. So if there were multiple fields of the modgrade type
      added into a form (not a common case yet still valid), elements created
      within the group were assigned same id attributes.
      
      The patch introduces a new method for generating the id attribute of
      modgrade elements. The new method takes the name of the modgrade group
      into account and returns the id in the format similar to the default one
      returned by HTML_QuickForm_element::_generateId().
      
      The patch changes the generated id attribute. Apart from the
      block_activity_results' behat feature files, not other places seem to
      rely on the exact value.
      d84c64b7
  7. 15 Oct, 2014 1 commit
  8. 05 Nov, 2013 1 commit
  9. 28 Jul, 2013 1 commit
  10. 10 May, 2013 4 commits
  11. 04 Apr, 2013 1 commit
  12. 26 Mar, 2013 1 commit
  13. 04 Apr, 2012 1 commit
    • Petr Skoda's avatar
      MDL-32149 PHPUnit test support - part 2 · a3d5830a
      Petr Skoda authored
      Includes:
      * constants refactoring
      * reworked db table init
      * support for $CFG->debug = -1
      * functional DB tests
      * fixed $DB->get_indexes() to not throw exceptions when table does not exist
      * fix handling of user passwords in test db
      * add debug info to exception messages
      * removed unnecessary PHP debug errors from mathslib
      * fixed @error suppression in get_string
      * fixed PHPUnit error handler setup
      * added timezone info to default install
      a3d5830a
  14. 21 Mar, 2012 1 commit
  15. 23 Dec, 2011 1 commit
    • Tim Hunt's avatar
      MDL-30168 formslib: untangle automatic id generation. · 820b41e3
      Tim Hunt authored
      Previously, we had overridden the _generateId method in almost all
      subclasses; and then we mostly, but not always; ignored the value that
      was generated there, and instead generated new (nicer) values in
      MoodleQuickForm_Renderer::renderElement. Of course, that is not really a
      logical place to (re)generate ids.
      
      I have fixed the code so that the _generateId method now uses the 'nice
      id' algorithm from renderElement. This should make the whole code flow
      more logical.
      
      This make all our overriding of _generateId unnecessary.
      
      We do need a special _generateId for radio buttons, because you often
      have different radio buttons with the same name but different values.
      
      This change should only change the ids on radio, checkbox and
      advcheckbox elements. Previously, those were essentially random, so I
      don't think anyone could have been relying on the particular values.
      
      This commit also has new unit tests, first to test the basic _generateId
      algorithm, and then to create and render an example form (including some
      tricky things like repeat_elements) and chech the acutal ids in the
      generated HTML.
      820b41e3
  16. 29 Jul, 2011 1 commit