SF Bug #2980701 - Creation templates get used for modification post creation

This commit is contained in:
Deon George 2011-04-25 22:29:38 +10:00
parent b3874bf958
commit c5f045756e

View File

@ -64,11 +64,11 @@ if ($add_result) {
else if ($action_number == 2)
$redirect_url = sprintf('cmd.php?%s&template=%s&container=%s',
$href,$request['template']->getID(),rawurlencode($request['template']->getContainer()));
$href,'default',rawurlencode($request['template']->getContainer()));
else
$redirect_url = sprintf('cmd.php?%s&template=%s&dn=%s',
$href,$request['template']->getID(),rawurlencode($request['template']->getDN()));
$href,'default',rawurlencode($request['template']->getDN()));
if ($action_number == 1 || $action_number == 2)
printf('<meta http-equiv="refresh" content="0; url=%s" />',$redirect_url);