webui: fix regression in association facet preop

Association facet specs use 'add_method' instead of 'add command'

origin: https://fedorahosted.org/freeipa/ticket/4507
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik
2014-09-19 18:27:35 +02:00
parent 7a99f22ee0
commit 18cb8d7736

View File

@@ -830,7 +830,7 @@ exp.association_facet_pre_op = function(spec, context) {
// batch associator (default) calls entity_command, serial associator
// calls other_entity_command --> if entity doesn't support the command,
// switch associators to try the other_entity
var add_command = spec.add_command || 'add_member';
var add_command = spec.add_method || 'add_member';
if (!metadata_provider.get('@mc:'+entity.name+'_'+add_command)) {
spec.associator = IPA.serial_associator;
}