From d0970a35bdd18e2d87b6b6a1467ca27c0658f4b2 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 17 Nov 2006 22:11:32 +0000 Subject: [PATCH] Removed WebGUI::Form::Workflow "edit" button because it won't work right. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Form/Workflow.pm | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 8a670467a..cc56dff5e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.2.2 - fix: Show Debugging option not working + - fix: Workflow form control edit button won't work. removed. 7.2.1 - Made a change to version tag commits to deal with unusually long commit diff --git a/lib/WebGUI/Form/Workflow.pm b/lib/WebGUI/Form/Workflow.pm index 1772be144..83be8f1d6 100644 --- a/lib/WebGUI/Form/Workflow.pm +++ b/lib/WebGUI/Form/Workflow.pm @@ -117,7 +117,9 @@ Renders the form field to HTML as a table row complete with labels, subtext, hov sub toHtmlWithWrapper { my $self = shift; my $returnUrl = ";proceed=goBackToPage;returnUrl=".$self->session->url->escape($self->session->asset->getUrl) if $self->session->asset; - my $buttons = $self->session->icon->edit("op=editWorkflow;workflowId=".$self->get("value").$returnUrl) if ($self->get("value")); + my $buttons; + # This edit button will not work with multiple workflows. + #$buttons .= $self->session->icon->edit("op=editWorkflow;workflowId=".$self->get("value")->[0].$returnUrl) if ($self->get("value")); $buttons .= $self->session->icon->manage("op=manageWorkflows".$returnUrl); $self->set("subtext",$buttons . $self->get("subtext")); return $self->SUPER::toHtmlWithWrapper;