MDL-47065 notes: don't add blank notes
authorDan Poltawski <dan@moodle.com>
Thu, 5 Nov 2015 14:13:47 +0000 (14:13 +0000)
committerDan Poltawski <dan@moodle.com>
Thu, 12 Nov 2015 09:56:14 +0000 (09:56 +0000)
commit142099e2a647603eb3b17677a08337262606432b
tree7feef20383aa57827306b50d03732f271f0c5ccc
parentbcf2ea710cdae055fddbecd0618087e071c0559a
MDL-47065 notes: don't add blank notes

Previously the logic was wrong and was proceeding to add a note
when content was missing.

Also add behat coverage for adding notes to participants (this test is
not perfect, but better than zero coverage we had before).
notes/tests/behat/participants_notes.feature [new file with mode: 0644]
user/addnote.php