Fix errors in checking objects being printed and painted at the same

time
This commit is contained in:
Joshua Ramon Enslin 2023-07-25 22:17:26 +02:00
parent 517f21f910
commit fc99e94d79
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -139,7 +139,7 @@ final class MDPlausi {
// Paintings should not be printed at the same time
if ($this->_is_painted_drawn === true and $this->_is_print_material === true) {
$message = $this->_tlLoader->tl("quality", "quality", "print_not_paint") . ' ' . $this->_tlLoader->tl("quality", "quality", "better_use") . ' "' . $this->_tlLoader->tl("eventtype_name", "eventname", "4") . '" . ';
$this->_messageList[] = $this->_tlLoader->tl("quality", "quality", "print_not_paint") . ' ' . $this->_tlLoader->tl("quality", "quality", "better_use") . ' "' . $this->_tlLoader->tl("eventtype_name", "eventname", "4") . '" . ';
$this->_hasCertainWarnings = true;
}
@ -561,8 +561,8 @@ final class MDPlausi {
}
if (!isset($this->_is_painted_drawn)) $this->_is_painted_drawn = true;
if (!isset($this->_is_print_material)) $this->_is_print_material = true;
if (!isset($this->_is_painted_drawn)) $this->_is_painted_drawn = false;
if (!isset($this->_is_print_material)) $this->_is_print_material = false;
}