Commit d4593554 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Update the urlid of a copied page (Bug 1058416)

Change-Id: Ic554b94fa20f5978108b0c828c70834246c9c9c9
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent 93cbfb16
......@@ -387,6 +387,10 @@ class View {
$view->set('dirty', true);
}
$view->urlid = generate_urlid($view->title, get_config('cleanurlviewdefault'), 3, 100);
$viewdata['owner'] = $userid;
$view->urlid = self::new_urlid($view->urlid, (object)$viewdata);
try {
$copystatus = $view->copy_contents($template);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment