aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Questionnaire.pm2
-rw-r--r--templates/web/default/report/display.html3
2 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm
index c498ec61e..d9bdb7108 100755
--- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm
+++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm
@@ -168,7 +168,7 @@ sub submit_standard : Private {
# If it's not fixed and they say it's still not been fixed, record time update
if ( $c->stash->{been_fixed} eq 'No' &&
- FixMyStreet::DB::Result::Problem->open_states($old_state) ) {
+ FixMyStreet::DB::Result::Problem->open_states->{$old_state} ) {
$problem->lastupdate( \'ms_current_timestamp()' );
}
diff --git a/templates/web/default/report/display.html b/templates/web/default/report/display.html
index b3eb0d779..fe26ec60d 100644
--- a/templates/web/default/report/display.html
+++ b/templates/web/default/report/display.html
@@ -95,6 +95,7 @@
<option [% 'selected ' IF state.0 == problem.state %] value="[% state.0 %]">[% state.1 %]</option>
[% END %]
</select>
+ </div>
[% ELSE %]
[% IF problem.is_fixed AND c.user_exists AND c.user.id == problem.user_id %]
<div class="checkbox">
@@ -103,7 +104,7 @@
</div>
[% ELSIF !problem.is_fixed %]
<div class="checkbox">
- <input type="checkbox" name="fixed" id="form_fixed" value="1"[% fixed %]>
+ <input type="checkbox" name="fixed" id="form_fixed" value="1"[% ' checked' IF update.mark_fixed %]>
<label for="form_fixed">[% loc('This problem has been fixed') %]</label>
</div>
[% END %]