Skip to content

Commit

Permalink
Include parameters to setup for instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Jan 3, 2019
1 parent 499ae62 commit 99dc5e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/instruments/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Instrument List
# Instruments Module

## Purpose

Expand Down
6 changes: 3 additions & 3 deletions php/libraries/NDB_BVL_Instrument.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2184,10 +2184,10 @@ class NDB_BVL_Instrument extends NDB_Page
// make the control panel object for the current instrument
$controlPanel = new NDB_BVL_InstrumentStatus_ControlPanel(
$this->testName,
$this->getCommentID(),
$this->getCommentID() ?? '',
0,
$this->getSessionID(),
$this->page
$this->page ?? ''
);
$this->addHidden('test_name', $this->testName);
$this->addHidden('page', $this->page);
Expand Down Expand Up @@ -2596,7 +2596,7 @@ class NDB_BVL_Instrument extends NDB_Page
*/
public function handle(ServerRequestInterface $request) : ResponseInterface
{
$this->setup();
$this->setup($this->commentID, $this->page);
if ($request->getMethod() === "POST") {
$this->save();
}
Expand Down

0 comments on commit 99dc5e9

Please # to comment.