diff --git a/app/routes/issues.py b/app/routes/issues.py index 50db69d..9773811 100644 --- a/app/routes/issues.py +++ b/app/routes/issues.py @@ -85,7 +85,7 @@ def view(issue_id): issue.result_photos = existing + new_photos # Persist a comment entry if the user wrote update notes - comment_body = form.comments.data.strip() if form.comments.data else '' + comment_body = form.update_notes.data.strip() if form.update_notes.data else '' if comment_body: comment = IssueComment( issue_id = issue.id, diff --git a/app/templates/issues/view.html b/app/templates/issues/view.html index 6d23e80..8a9d8fb 100644 --- a/app/templates/issues/view.html +++ b/app/templates/issues/view.html @@ -118,8 +118,8 @@ {% endif %}
- {{ form.comments.label(class="form-label fw-semibold") }} - {{ form.comments(class="form-control", rows=3, placeholder="Optional update notes…") }} + {{ form.update_notes.label(class="form-label fw-semibold") }} + {{ form.update_notes(class="form-control", rows=3, placeholder="Optional update notes…") }}
{{ form.result_notes.label(class="form-label fw-semibold") }} diff --git a/app/utils/forms.py b/app/utils/forms.py index fdf57c1..5080b33 100644 --- a/app/utils/forms.py +++ b/app/utils/forms.py @@ -127,7 +127,7 @@ class IssueUpdateForm(FlaskForm): ('open','Open'), ('in_progress','In Progress'), ('resolved','Resolved'), ], validators=[DataRequired()]) assigned_to = SelectField('Assign To', coerce=int, validators=[Optional()]) - comments = TextAreaField('Update Notes', validators=[Optional(), Length(max=1000)]) + update_notes = TextAreaField('Update Notes', validators=[Optional(), Length(max=1000)]) result_notes = TextAreaField('Result Notes', validators=[Optional(), Length(max=2000)]) result_photos = FileField('Result Photos', validators=[ Optional(),