#609: Optional route params are generated incorrectly under certain 
circumstances
---------------------+------------------------------------------------------
 Reporter:  david    |       Owner:  dominik  
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  0.11     
Component:  routing  |     Version:  0.11.0RC7
 Severity:  major    |    Keywords:           
---------------------+------------------------------------------------------
 Reproduce case:
 {{{
 <route name="foo"
 pattern="^/foo(/{page:\d+})?(/{order:(name|date)})?(/{set:(DESC|ASC)})?$"
 />
 }}}
 {{{
 $ro->gen('foo', array('order' => 'name', 'set' => 'ASC'));
 }}}

 yields
 {{{
 /foo//name/ASC
 }}}
 if the current URL is
 {{{
 /foo/name/DESC
 }}}

 but works:
 {{{
 /foo/name/ASC
 }}}
 if the current URL is for example:
 {{{
 /foo
 }}}

-- 
Ticket URL: <http://trac.agavi.org/ticket/609>
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