mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
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:
parent
592f3fe659
commit
df5526fbc7
@ -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 = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user