fixed failure when editing campaign managers [fix #27468285] [finish #27531719]

pull/1/head
eric 2012-04-05 17:53:00 -04:00
parent 5eb5b093a3
commit 26c0ad2b27
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ def rh_tools(request):
else:
campaign.edit_managers_form=EditManagersForm(instance=campaign, prefix=campaign.id)
if claim.status == 'active' and claim.can_open_new:
if request.method == 'POST' and int(request.POST['work']) == claim.work.id :
if request.method == 'POST' and request.POST.has_key('work') and int(request.POST['work']) == claim.work.id :
claim.campaign_form = OpenCampaignForm(request.POST)
if claim.campaign_form.is_valid():
new_campaign = claim.campaign_form.save(commit=False)