mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Merge branch 'pr/4260'
This commit is contained in:
commit
4ecac1b20e
1 changed files with 11 additions and 2 deletions
|
@ -170,11 +170,20 @@ define(function (require) {
|
|||
return;
|
||||
case 'source':
|
||||
key = '_source';
|
||||
/* fall through */
|
||||
addToBody();
|
||||
break;
|
||||
case 'sort':
|
||||
val = normalizeSortRequest(val, this.get('index'));
|
||||
/* fall through */
|
||||
addToBody();
|
||||
break;
|
||||
default:
|
||||
addToBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the key and val to the body of the resuest
|
||||
*/
|
||||
function addToBody() {
|
||||
state.body = state.body || {};
|
||||
// ignore if we already have a value
|
||||
if (state.body[key] == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue