Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ class BuildFormBootstrap extends AbstractBuildForm { ...@@ -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" $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'])); $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()); $button = Support::wrapTag('<div class="col-xs-12 col-sm-6 col-md-4">', $this->buildButtons());
$html .= Support::wrapTag('<div class="row">', $title . $button); $html .= Support::wrapTag('<div class="row">', $title . $button);
......
...@@ -43,8 +43,10 @@ class AbstractException extends \Exception { ...@@ -43,8 +43,10 @@ class AbstractException extends \Exception {
$this->messageArray['Message'] = $this->getMessage(); $this->messageArray['Message'] = $this->getMessage();
$this->messageArray['Code'] = $this->getCode(); $this->messageArray['Code'] = $this->getCode();
$this->messageArray['Timestamp'] = date('Y.m.d H:i:s O'); $this->messageArray['Timestamp'] = date('Y.m.d H:i:s O');
// $this->messageArray['Stacktrace'] = '<pre>' . $this->getTraceAsString() . '</pre>'; //TODO: 'Client' will remove any HTML Tags before displaying. Formatting needs to be solved together with 'Client',
$this->messageArray['Stacktrace'] = $this->getTrace(); // Respect mode: 'form load' (plain HTML), 'Ajax alert'
$this->messageArray['Stacktrace'] = $this->getTraceAsString();
// $this->messageArray['Stacktrace'] = $this->getTrace();
if ($store !== null) { if ($store !== null) {
$this->messageArray['Page Id'] = $store->getVar(TYPO3_PAGE_ID, STORE_TYPO3); $this->messageArray['Page Id'] = $store->getVar(TYPO3_PAGE_ID, STORE_TYPO3);
$this->messageArray['Content Id'] = $store->getVar(TYPO3_TT_CONTENT_UID, STORE_TYPO3); $this->messageArray['Content Id'] = $store->getVar(TYPO3_TT_CONTENT_UID, STORE_TYPO3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment