Added debug output for form validation errors
authorAlexander Ebert <ebert@woltlab.com>
Sun, 9 Jul 2017 14:46:15 +0000 (16:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 9 Jul 2017 14:46:21 +0000 (16:46 +0200)
See #2316

com.woltlab.wcf/templates/pageFooter.tpl
wcfsetup/install/files/acp/templates/pageFooter.tpl

index d2c88fb06d0215a531b59305b862431577cfe607..2d8e3cd085fb9af3d1ae80ea8658af1847dadaad 100644 (file)
@@ -1,4 +1,15 @@
 <footer id="pageFooter" class="pageFooter">
+       {if !$errorField|empty || !$errorType|empty}
+               <!--
+                       DEBUG: FORM_VALIDATION_FAILED
+                       
+                       errorField: {if $errorField|empty}(empty){else}{$errorField|print_r:true}{/if}
+                       
+                       errorType: {if $errorType|empty}(empty){else}{$errorType|print_r:true}{/if}
+               
+               -->
+       {/if}
+       
        {assign var=__boxesFooter value=$__wcf->getBoxHandler()->getBoxes('footer')}
        {if $__wcf->getStyleHandler()->showStyleChanger() && $__wcf->getStyleHandler()->countStyles() > 1}
                {assign var=__showStyleChanger value=true}
index 93ceb72c3077d6c1c028f1adf1bc50b2e0dac874..6061825f85b6a7c63d48cdecc42bb947afc6a156 100644 (file)
@@ -1,4 +1,15 @@
 <footer id="pageFooter" class="pageFooter">
+       {if !$errorField|empty || !$errorType|empty}
+               <!--
+                       DEBUG: FORM_VALIDATION_FAILED
+                       
+                       errorField: {if $errorField|empty}(empty){else}{$errorField|print_r:true}{/if}
+                       
+                       errorType: {if $errorType|empty}(empty){else}{$errorType|print_r:true}{/if}
+               
+               -->
+       {/if}
+       
        <div id="pageFooterCopyright" class="pageFooterCopyright">
                <div class="layoutBoundary">
                        {event name='footerContents'}