Skip to content

Commit

Permalink
Fix UI bug (#1364)
Browse files Browse the repository at this point in the history
* Remove redundant assignment

* Set missing context variable.
  • Loading branch information
paulpepper-trade authored Dec 18, 2024
1 parent 5824196 commit 4f054b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion tasks/jinja2/tasks/edit.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends "layouts/form.jinja" %}
{% from "components/breadcrumbs.jinja" import breadcrumbs %}

{% set page_title = page_title %}

{% block breadcrumb %}
{{ breadcrumbs(request, [
Expand Down
5 changes: 5 additions & 0 deletions tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class TaskUpdateView(PermissionRequiredMixin, UpdateView):
permission_required = "tasks.change_task"
form_class = TaskUpdateForm

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["page_title"] = "Edit task details"
return context

def form_valid(self, form):
set_current_instigator(self.request.user)
with transaction.atomic():
Expand Down

0 comments on commit 4f054b6

Please sign in to comment.