Commit 0cd47ae7 authored by Dirk Wildt's avatar Dirk Wildt

0.0.7

parent 978e3065
......@@ -123,8 +123,11 @@ class CssClassViewHelper extends AbstractViewHelper
$prompt = 'Undefined value in switch @ ' . __METHOD__ . ' (#' . __LINE__ . ')';
die( $prompt );
}
// var_dump( __METHOD__, __LINE__, serialize( $ticketCss ) );
// die();
if( empty( $ticketCss ) )
{
$this->_getTicketCssPromptDie( __METHOD__, __LINE__, $ticket );
}
$ticketCssUid = $ticketCss->getUid();
$cssRepository = ObjectUtility::getObjectManager()->get( CssRepository::class );
......@@ -132,6 +135,22 @@ class CssClassViewHelper extends AbstractViewHelper
return $css->getClass();
}
/**
* @param string $method
* @param string $line
* @param string $ticket
* @return void
*/
private function _getTicketCssPromptDie( $method, $line, $ticket )
{
$prompt = 'ERROR @ ' . $method . ' (#' . $line . ')<br />'
. '<br />'
. 'It seems, that a CSS class of the ticket with the uid #' . $ticket->getUid() . ' is empty.<br />'
. 'Please check the ticket!'
;
die( $prompt );
}
/**
* @param int $uid
* @return mixed
......
......@@ -113,7 +113,7 @@
</ul>
</f:then>
<f:else>
<f:link.action action="new" class="btn btn-primary">Neuer Plan</f:link.action>
<f:link.action action="new" class="btn btn-primary" controller="Area">Neuer Plan</f:link.action>
</f:else>
</f:if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment