Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

properly check for the presence of the design response

  • Loading branch information...
commit d8a88e86622e88126cfecbdf8adc3c696e202dda 1 parent 982ce90
@rmarianski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  application/controllers/admin/reports.php
View
2  application/controllers/admin/reports.php
@@ -976,7 +976,7 @@ function edit( $id = false, $saved = false )
// fetch design response
$design_response_obj = ORM::factory('design_response')->where('incident_id', $incident->id)->find();
- if ($design_response_obj) {
+ if ($design_response_obj->id > 0) {
$design_response = $design_response_obj->text;
} else {
$design_response = '';
Please sign in to comment.
Something went wrong with that request. Please try again.