From 05cbb7585795e8196d29499aba318709e3a76f65 Mon Sep 17 00:00:00 2001
From: aydreeihn <adriane@enhancesoft.com>
Date: Mon, 4 Nov 2019 14:34:44 -0600
Subject: [PATCH] Issue: Edit Task Fields

This commit fixes an issue where you were unable to edit custom fields if they were added to a task form after a task had been created.
---
 include/staff/templates/task-edit.tmpl.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/staff/templates/task-edit.tmpl.php b/include/staff/templates/task-edit.tmpl.php
index 5c8533eb9..dcb8fc7c2 100644
--- a/include/staff/templates/task-edit.tmpl.php
+++ b/include/staff/templates/task-edit.tmpl.php
@@ -29,13 +29,15 @@ if ($info['error']) {
     <div>
     <?php
     if ($forms) {
-        foreach ($forms as $form)
+        foreach ($forms as $form) {
+            $form->addMissingFields();
             echo $form->getForm(false, array('mode' => 'edit'))->asTable(
                     __('Task Information'),
                     array(
                         'draft-namespace' => $namespace,
                         )
                     );
+        }
     }
     ?>
     </div>
-- 
GitLab