fixed bug #517: Bug in s/p view when closing infolog

This commit is contained in:
Ralf Becker 2007-04-26 12:53:17 +00:00
parent e6334fe830
commit 38df241f94

View File

@ -378,7 +378,8 @@
if (!($values['msg'] = $this->delete($do_id,$called_as,$called_as ? '' : 'index'))) return; if (!($values['msg'] = $this->delete($do_id,$called_as,$called_as ? '' : 'index'))) return;
break; break;
case 'close': case 'close':
return $this->close($do_id,$called_as,$do == 'close_subs'); $this->close($do_id,$called_as);
break;
case 'sp': case 'sp':
return $this->edit(0,'sp',$do_id,'',$called_as); return $this->edit(0,'sp',$do_id,'',$called_as);
case 'view': case 'view':
@ -477,7 +478,7 @@
} }
} }
} }
return $referer ? $this->tmpl->location($referer) : $this->index(); if ($referer) $this->tmpl->location($referer);
} }
function delete($values=0,$referer='',$called_by='') function delete($values=0,$referer='',$called_by='')