Skip to content

Commit

Permalink
fix for MID-8893 - no collection name parameter for popup, use the de…
Browse files Browse the repository at this point in the history
…fault one, such as allUsers, allResources,..
  • Loading branch information
katkav committed Jul 18, 2023
1 parent dd67038 commit 910f0d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.util.List;

import com.evolveum.midpoint.gui.impl.util.TableUtil;
import com.evolveum.midpoint.model.api.authentication.CompiledObjectCollectionView;
import com.evolveum.midpoint.prism.query.ObjectQuery;
import com.evolveum.midpoint.gui.api.component.data.provider.ISelectableDataProvider;

Expand Down Expand Up @@ -179,4 +180,9 @@ protected UserProfileStorage.TableId getTableId() {
protected boolean isCollectionViewPanelForCompiledView() {
return false;
}

@Override
protected String getCollectionNameFromPageParameters() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,15 @@ public CompiledObjectCollectionView getObjectCollectionView() {
if (view != null) {
return view;
}
String collectionName = WebComponentUtil.getCollectionNameParameterValueAsString(getPageBase());
String collectionName = getCollectionNameFromPageParameters();
return getPageBase().getCompiledGuiProfile().findObjectCollectionView
(WebComponentUtil.anyClassToQName(getPageBase().getPrismContext(), getType()), collectionName);
}

protected String getCollectionNameFromPageParameters() {
return WebComponentUtil.getCollectionNameParameterValueAsString(getPageBase());
}

private CompiledObjectCollectionView getCompiledCollectionViewFromPanelConfiguration() {
if (compiledCollectionViewFromPanelConfiguration != null) {
return compiledCollectionViewFromPanelConfiguration;
Expand Down

0 comments on commit 910f0d5

Please sign in to comment.