Make warning status limited in production / postproduction
relationship, if earliest postproduction is before earliest possible production
This commit is contained in:
parent
11c61525e0
commit
f03bde7c50
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user