PacketFence - BTS - PacketFence
View Issue Details
0001267PacketFencecaptive portalpublic2011-09-14 16:312014-06-02 08:15
obilodeau 
fdurand 
hightrivialrandom
resolvedfixed 
 
 
0001267: add template toolkit error reporting on all ->process calls
Just like I did here at revno: 49438888fdbade2110cb70324e34381245c1bf25

--- pf/lib/pf/web/guest.pm      0a9d7807c131a50376d474012b92a1a629d5e85c
+++ pf/lib/pf/web/guest.pm      44fa683d2c052e22eac0e0f12b25250469c5a1e3
@@ -228,7 +228,7 @@ sub generate_registration_page {
     #}

     my $template = Template->new({ INCLUDE_PATH => [$CAPTIVE_PORTAL{'TEMPLATE_DIR'}], });
-    $template->process($pf::web::guest::REGISTRATION_TEMPLATE, $vars);
+    $template->process($pf::web::guest::REGISTRATION_TEMPLATE, $vars) || $logger->error($template->error());
     
exit;
 }   



It helped out identify a nasty bug. It should be done by default on all the $template->process() calls.
No tags attached.
Issue History
2011-09-14 16:31obilodeauNew Issue
2012-05-03 13:44obilodeauStatusnew => assigned
2012-05-03 13:44obilodeauAssigned To => fdurand
2012-05-03 13:45obilodeauNote Added: 0002696
2014-06-02 08:15fdurandStatusassigned => resolved
2014-06-02 08:15fdurandResolutionopen => fixed

Notes
(0002696)
obilodeau   
2012-05-03 13:45   
Something good to learn for you fdurand.