From 99dc5e911b9e697d958409f1a7e91456137f6fc6 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 3 Jan 2019 12:52:22 -0500 Subject: [PATCH] Include parameters to setup for instrument --- modules/instruments/README.md | 2 +- php/libraries/NDB_BVL_Instrument.class.inc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/instruments/README.md b/modules/instruments/README.md index 7b2bafe4d45..5e2a1d8206f 100644 --- a/modules/instruments/README.md +++ b/modules/instruments/README.md @@ -1,4 +1,4 @@ -# Instrument List +# Instruments Module ## Purpose diff --git a/php/libraries/NDB_BVL_Instrument.class.inc b/php/libraries/NDB_BVL_Instrument.class.inc index 4feedfd56eb..11464a2f88e 100644 --- a/php/libraries/NDB_BVL_Instrument.class.inc +++ b/php/libraries/NDB_BVL_Instrument.class.inc @@ -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); @@ -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(); }