Commit c075fc24 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractException.php: Changing 'getTraceToString()' to 'getTrace()' causes...

AbstractException.php: Changing 'getTraceToString()' to 'getTrace()' causes trouble if there is an exception during formLoad. Rendering error messages will be redesigned (#3424)
parent 949391f6
......@@ -106,6 +106,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
$html .= '<div ' . Support::doAttribute('class', $this->formSpec[F_CLASS], TRUE) . '>'; // main <div class=...> around everything, Whole FORM; class="container" or class="container-fluid"
//TODO: make test with 'unknown index' here - unset($this->formSpec['title']) - See #3424
$title = Support::wrapTag('<div class="hidden-xs col-sm-6 col-md-8">', Support::wrapTag('<h3>', $this->formSpec['title']));
$button = Support::wrapTag('<div class="col-xs-12 col-sm-6 col-md-4">', $this->buildButtons());
$html .= Support::wrapTag('<div class="row">', $title . $button);
......
......@@ -43,8 +43,10 @@ class AbstractException extends \Exception {
$this->messageArray['Message'] = $this->getMessage();
$this->messageArray['Code'] = $this->getCode();
$this->messageArray['Timestamp'] = date('Y.m.d H:i:s O');
// $this->messageArray['Stacktrace'] = '<pre>' . $this->getTraceAsString() . '</pre>';
$this->messageArray['Stacktrace'] = $this->getTrace();
//TODO: 'Client' will remove any HTML Tags before displaying. Formatting needs to be solved together with 'Client',
// Respect mode: 'form load' (plain HTML), 'Ajax alert'
$this->messageArray['Stacktrace'] = $this->getTraceAsString();
// $this->messageArray['Stacktrace'] = $this->getTrace();
if ($store !== null) {
$this->messageArray['Page Id'] = $store->getVar(TYPO3_PAGE_ID, STORE_TYPO3);
$this->messageArray['Content Id'] = $store->getVar(TYPO3_TT_CONTENT_UID, STORE_TYPO3);
......
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