From df5526fbc71e9215456287dac396ca8a4d8082e3 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Fri, 29 May 2020 01:05:14 +0200 Subject: [PATCH] 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 Reviewed-By: Petr Vobornik --- install/ui/src/freeipa/details.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js index af9d7c00d..a8d49eb90 100644 --- a/install/ui/src/freeipa/details.js +++ b/install/ui/src/freeipa/details.js @@ -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 = [];