Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions flow/src/org/labkey/flow/controllers/run/RunController.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ public class ShowRunsAction extends SimpleViewAction<RunsForm>
public ModelAndView getView(RunsForm form, BindException errors)
{
experiment = form.getExperiment();
if (experiment == null)
{
throw new NotFoundException();
}
// script = form.getScript();

checkContainer(experiment);
Expand Down
12 changes: 6 additions & 6 deletions flow/src/org/labkey/flow/controllers/run/RunsForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

package org.labkey.flow.controllers.run;

import org.labkey.flow.query.FlowQueryForm;
import org.labkey.flow.query.FlowSchema;
import org.labkey.flow.query.FlowTableType;
import org.labkey.flow.data.FlowExperiment;
import org.labkey.flow.data.FlowScript;
import org.labkey.api.query.QuerySettings;
import org.labkey.api.query.UserSchema;
import org.labkey.api.view.ActionURL;
import org.labkey.flow.data.FlowExperiment;
import org.labkey.flow.data.FlowScript;
import org.labkey.flow.query.FlowQueryForm;
import org.labkey.flow.query.FlowSchema;
import org.labkey.flow.query.FlowTableType;

/**
* User: kevink
Expand Down Expand Up @@ -88,7 +88,7 @@ public QuerySettings createQuerySettings(UserSchema schema)

// adding the filter doesn't work because of bug 6520
// 6520 : can't set filter/sort on QuerySettings progamatically
if (getScript() != null)
if (getScript() != null && getScript().getExpObject() != null)
{
ActionURL sortFilter = getScript().getRunsUrl(ret.getSortFilterURL());
ret.setSortFilterURL(sortFilter);
Expand Down