WebUI: Make object_class_evaluator evaluator compatible with batch responses

Use data adapter in evaluator to be able to deal with batch
RPC responses.

Related: https://pagure.io/freeipa/issue/8336
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Peter Keresztes Schmidt 2020-05-29 01:05:14 +02:00 committed by Florence Blanc-Renaud
parent 592f3fe659
commit df5526fbc7

View File

@ -1823,6 +1823,7 @@ exp.object_class_evaluator = IPA.object_class_evaluator = function(spec) {
var that = IPA.state_evaluator(spec);
that.adapter = builder.build('adapter', spec.adapter || 'adapter', { context: that });
/**
* @inheritDoc
@ -1832,7 +1833,7 @@ exp.object_class_evaluator = IPA.object_class_evaluator = function(spec) {
var old_state, classes, i;
old_state = that.state;
classes = data.result.result.objectclass;
classes = that.adapter.load(data, 'objectclass');
that.state = [];