#1282: Add line numbers to FPF parse error response
-------------------------------------+--------------------------------------
 Reporter:  a.fied...@…              |       Owner:  david                      
                         
     Type:  enhancement              |      Status:  new                        
                         
 Priority:  normal                   |   Milestone:  1.0.4                      
                         
Component:  filter                   |     Version:  1.0.3                      
                         
 Severity:  normal                   |    Keywords:  FormPopulationFilter FPF 
error reporting line number
Has_patch:  1                        |  
-------------------------------------+--------------------------------------
 Change line 193 in AgaviFormPopulationFilter.class.php to add line numbers
 to the html response, because it´s not clear which line is the one if FPF
 says "error on line xyz". This should work:

    $count = 3;
    $responseContent = preg_replace("/\n/e", '"\n[Line " . $count++ . "]
 "', $response->getContent());
    $lmsg = $emsg . "\n\nResponse content:\n\n[Line 2] " . $responseContent
 . "\n\n";

-- 
Ticket URL: <http://trac.agavi.org/ticket/1282>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to