Commit 50a7d5b1 authored by Nigel McNie's avatar Nigel McNie
Browse files

Allow the config passed to View::import_from_config to include ownership information.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent e6cfce65
......@@ -1561,6 +1561,15 @@ class View {
'numcolumns' => $config['numcolumns'],
'ownerformat' => $config['ownerformat'],
);
if (isset($config['owner'])) {
$viewdata['owner'] = $config['owner'];
}
if (isset($config['group'])) {
$viewdata['group'] = $config['group'];
}
if (isset($config['institution'])) {
$viewdata['institution'] = $config['institution'];
}
$view = View::create($viewdata, $userid);
$col = 1;
......
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