Skip to content

Commit

Permalink
Use string constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
vagisha committed Jan 8, 2024
1 parent f4c685e commit 506e392
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
import org.labkey.panoramapublic.query.ExperimentAnnotationsManager;
import org.labkey.panoramapublic.query.JournalManager;
import org.labkey.panoramapublic.query.ModificationInfoManager;
import org.labkey.panoramapublic.query.MyDataTableInfo;
import org.labkey.panoramapublic.query.PxXmlManager;
import org.labkey.panoramapublic.query.SpecLibInfoManager;
import org.labkey.panoramapublic.query.SubmissionManager;
Expand Down Expand Up @@ -9215,7 +9216,7 @@ else if (!user.equals(getUser()))
return new SimpleErrorView(errors);
}

QuerySettings settings = new QuerySettings(getViewContext(), "MyPanoramaPublicData", "MyPanoramaPublicData");
QuerySettings settings = new QuerySettings(getViewContext(), MyDataTableInfo.NAME, MyDataTableInfo.NAME);
settings.setContainerFilterName(ContainerFilter.Type.CurrentAndSubfolders.name());
QueryView view = new QueryView(new PanoramaPublicSchema(getUser(), getContainer()), settings, errors);
view.setTitle("Panorama Public Experiments");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public MyDataTableInfo(PanoramaPublicSchema schema, ContainerFilter cf, User use

if (user != null)
{
// Display rows where the given user is either the submitter or the lab head.
// Filter to rows where the given user is either the submitter or the lab head.
SimpleFilter.OrClause or = new SimpleFilter.OrClause();
or.addClause(new CompareType.EqualsCompareClause(FieldKey.fromParts("submitter"), CompareType.EQUAL, user.getUserId()));
or.addClause(new CompareType.EqualsCompareClause(FieldKey.fromParts("labhead"), CompareType.EQUAL, user.getUserId()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private QuerySettings createQuerySettings(ViewContext portalCtx, String dataRegi
{
settings.setContainerFilterName(ContainerFilter.Type.CurrentAndSubfolders.name());
}

return settings;
}

Expand Down

0 comments on commit 506e392

Please sign in to comment.