From f05211dfa24dd4b4b7bed7f2f1b98f9861c517a8 Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Thu, 2 Aug 2007 14:18:44 +0000
Subject: [PATCH] Fix to allow creation of new changes from web interface

---
 application/views/approval_chain_manager.xhtml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/views/approval_chain_manager.xhtml b/application/views/approval_chain_manager.xhtml
index 4e65b9e1..26fc70cb 100644
--- a/application/views/approval_chain_manager.xhtml
+++ b/application/views/approval_chain_manager.xhtml
@@ -160,6 +160,7 @@
                                                  array('class' => 'action_type_select'),
                                                  $this->approvalActions); ?>
                 </label>
+                <?php if ($this->approvalChain->getPrimaryKey()) { ?>
                 <label class="participating_roles">
                     Participating Roles:<br/>
                     <?php echo $this->formSelect('participatingRoles', null,
@@ -168,6 +169,7 @@
                                                     'name', ApprovalBodyRoles::getInstance()->getPrimaryKeyName()
                                                  )); ?>
                 </label>
+                <?php } ?>
                 <div class="edit_approval_chain_specifics clear"></div>
             </div>
             <?php echo $this->formSubmit('submit', 'Create'); ?>
-- 
GitLab