Make warning status limited in production / postproduction

relationship, if earliest postproduction is before earliest possible
production
This commit is contained in:
Joshua Ramon Enslin 2023-10-08 01:16:01 +02:00
parent 11c61525e0
commit f03bde7c50
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -265,13 +265,13 @@ final class MDPlausi {
*/ */
private function _evaluateProductionAfterPostproduction():void { private function _evaluateProductionAfterPostproduction():void {
if ($this->_post_production->earliest_event_type !== 0 if ($this->_post_production->latest_event_type !== 0
&& $this->_production->earliest_event_type !== 0 && $this->_production->earliest_event_type !== 0
&& $this->_post_production->earliest < $this->_production->earliest) { && $this->_post_production->latest < $this->_production->earliest) {
$message = $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_post_production->earliest_event_type); $message = $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_post_production->latest_event_type);
$message .= $this->_post_production->formulateMessagePartForEarliest($this->_tlLoader); $message .= $this->_post_production->formulateMessagePartForLatest($this->_tlLoader);
$message .= ' ' . strtolower($this->_tlLoader->tl("quality", "quality", "before")) . ' ' . $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_production->earliest_event_type); $message .= ' ' . strtolower($this->_tlLoader->tl("quality", "quality", "before")) . ' ' . $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_production->earliest_event_type);
@ -282,6 +282,22 @@ final class MDPlausi {
} }
else if ($this->_post_production->earliest_event_type !== 0
&& $this->_production->earliest_event_type !== 0
&& $this->_post_production->earliest < $this->_production->earliest) {
$message = $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_post_production->earliest_event_type);
$message .= $this->_post_production->formulateMessagePartForEarliest($this->_tlLoader);
$message .= ' ' . strtolower($this->_tlLoader->tl("quality", "quality", "before_possibly")) . ' ' . $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_production->earliest_event_type);
$message .= $this->_production->formulateMessagePartForEarliest($this->_tlLoader);
$this->_messageList[] = $message;
}
else if ($this->_post_production->earliest_event_type !== 0 else if ($this->_post_production->earliest_event_type !== 0
&& $this->_production->latest_event_type !== 0 && $this->_production->latest_event_type !== 0
&& $this->_post_production->earliest < $this->_production->latest) { && $this->_post_production->earliest < $this->_production->latest) {