Fix a regression in the review request API.

Review Request #6441 — Created Oct. 14, 2014 and submitted

Information

Review Board
release-2.0.x
87c1c67...

Reviewers

The recent change to the close description fields to handle markdown caused a
regression in the case where the close_description field was null. In this
case, trying to normalize the text would fail, and the API endpoint would
return a 500 with a traceback.

This change makes it so that if a text field is null, we just pass that
through.

  • Verified that I could once again update un-published review request drafts.
  • Ran unit tests.
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/mixins.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/mixins.py
    
    
  2. 
      
chipx86
  1. Ship It!

  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (2ada6cd)
Loading...