#4310 TypeError on _discuss url with pagination param

v1.0.0
closed
sf-2 (995)
Tracker
2015-08-20
2012-05-31
No

Example URL http://sourceforge.net/p/forge/comm-docs-tickets/_discuss/thread/fc476f50/?limit=50&page=0

Module /var/local/allura/Allura/allura/templates/widgets/thread_header.html:4 in top-level template code
<<    {% if limit %}
         <div>
           {% set cur_page = page / limit %}
           {% set num_pages = count / limit %}
           <div class="span-3">Page {{1 + cur_page}} of {{1 + num_pages}}</div>
>>  {% set cur_page = page / limit %}
TypeError: unsupported operand type(s) for /: 'int' and 'unicode'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-06-01
    • size: --> 2
     
  • Jenny Steele

    Jenny Steele - 2012-06-14
    • status: open --> in-progress
    • assigned_to: Jenny Steele
    • component: General --> Tracker
     
  • Jenny Steele

    Jenny Steele - 2012-06-14
    • status: in-progress --> code-review
    • qa: Tim Van Steenburgh
     
  • Jenny Steele

    Jenny Steele - 2012-06-14

    On allura js/4310. To test, make a url like the one above and make sure it doesn't 500.

     
  • Dave Brondsema

    Dave Brondsema - 2012-06-14
    • milestone: forge-jun-29 --> forge-jun-15
     
  • Tim Van Steenburgh

    • status: code-review --> closed
     

Log in to post a comment.