Commit aa0dd863 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Update the urlid of a copied page (Bug 1058416)" into 1.6_STABLE

parents a72fc7e1 62001373
......@@ -265,6 +265,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