#8316 Award/accolades error if project is removed

v1.11.1
closed
None
General
nobody
2019-07-15
2019-07-10
No

Error on /p/_admin/accolades if a project is gone:

 File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 143 in block "content_base"
   {% block content %}{% endblock %}
 File '/var/local/allura/Allura/allura/templates/neighborhood_admin_accolades.html', line 118 in block "content"
   <td><a href="{{grant.granted_to_project.url()}}">{{grant.granted_to_project.shortname}}</a></td>
 UndefinedError: 'None' has no attribute 'url'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2019-07-10
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -6,4 +6,4 @@
      File &#39;/var/local/allura/Allura/allura/templates/neighborhood_admin_accolades.html&#39;, line 118 in block &#34;content&#34;
        &lt;td&gt;&lt;a href=&#34;{{grant.granted_to_project.url()}}&#34;&gt;{{grant.granted_to_project.shortname}}&lt;/a&gt;&lt;/td&gt;
      UndefinedError: &#39;None&#39; has no attribute &#39;url&#39;
    - ```
    +```
    
     
  • Dave Brondsema

    Dave Brondsema - 2019-07-10
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2019-07-10

    Fix on db/8316

     
  • Kenton Taylor - 2019-07-10
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2019-07-15
    • Milestone: unreleased --> v1.11.1
     

Log in to post a comment.