Merge branch 'MDL-65254-master' of git://github.com/cescobedo/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 23 Apr 2019 11:42:08 +0000 (13:42 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 23 Apr 2019 11:42:08 +0000 (13:42 +0200)
1  2 
message/amd/build/message_drawer_view_search.min.js
message/amd/src/message_drawer_view_search.js

@@@ -991,10 -959,7 +992,10 @@@ function
       * @param {Object} header Contacts header container element.
       * @return {Object} jQuery promise
       */
-     var description = function(header) {
+     var description = function(namespace, header) {
 +        if (typeof header !== 'object') {
 +            return Str.get_string('messagedrawerviewsearch', 'core_message');
 +        }
          var searchInput = getSearchInput(header);
          var searchText = searchInput.val().trim();
          return Str.get_string('messagedrawerviewsearch', 'core_message', searchText);