Skip to content

Commit

Permalink
Merge branch 'devel' into 'master'.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarpon committed Jan 31, 2019
2 parents 53ddfb0 + 3bedfea commit f48863b
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions inc/setting/ParameterSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -1231,32 +1231,34 @@ public function checkPostedCapturingParameters(array $postedParameters) {
}

// CCDCaptorSizeY
$valueSet = isset($postedParameters["CCDCaptorSizeY"]) &&
$postedParameters["CCDCaptorSizeY"] != '';
if ($this->isArrDetConf()) {
$valueSet = isset($postedParameters["CCDCaptorSizeY"]) &&
$postedParameters["CCDCaptorSizeY"] != '';

$parameter = $this->parameter("CCDCaptorSizeY");
$parameter = $this->parameter("CCDCaptorSizeY");

if ($valueSet) {
if ($valueSet) {

// Set the Parameter and check the value
$parameter->setValue($postedParameters["CCDCaptorSizeY"]);
$this->set($parameter);
if (!$parameter->check()) {
$this->message = $parameter->message();
$noErrorsFound = False;
}
} else {
// Set the Parameter and check the value
$parameter->setValue($postedParameters["CCDCaptorSizeY"]);
$this->set($parameter);
if (!$parameter->check()) {
$this->message = $parameter->message();
$noErrorsFound = False;
}
} else {

$mustProvide = $parameter->mustProvide();
$mustProvide = $parameter->mustProvide();

// Reset the Parameter
$parameter->reset();
$this->set($parameter);
// Reset the Parameter
$parameter->reset();
$this->set($parameter);

// If the Parameter value must be provided, we return an error
if ($mustProvide) {
$this->message = "Please set the pixel size!";
$noErrorsFound = False;
// If the Parameter value must be provided, we return an error
if ($mustProvide) {
$this->message = "Please set the pixel size!";
$noErrorsFound = False;
}
}
}

Expand Down

0 comments on commit f48863b

Please sign in to comment.