Commit b9f8357b authored by Nigel McNie's avatar Nigel McNie
Browse files

Import View tags.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 28140f22
......@@ -483,6 +483,7 @@ class PluginImportLeap extends PluginImport {
'description' => (string)$entry->summary,
'type' => 'portfolio', // TODO
'layout' => null, // TODO
'tags' => self::get_entry_tags($entry),
'numcolumns' => 1,
'ownerformat' => FORMAT_NAME_DISPLAYNAME, // TODO
'owner' => $this->get('usr'),
......@@ -556,6 +557,7 @@ class PluginImportLeap extends PluginImport {
'description' => (string)$entry->summary,
'type' => 'portfolio', // TODO
'layout' => null, // TODO
'tags' => self::get_entry_tags($entry),
'numcolumns' => $columncount,
'ownerformat' => FORMAT_NAME_DISPLAYNAME, // TODO
);
......
......@@ -1557,11 +1557,11 @@ class View {
'description' => $config['description'],
'type' => $config['type'],
'layout' => $config['layout'],
'tags' => $config['tags'],
'numcolumns' => $config['numcolumns'],
'ownerformat' => $config['ownerformat'],
);
$view = View::create($viewdata, $userid);
if (isset($config['tags'])) $view->set('tags', $config['tags']); // TODO can this be done in the constructor?
$col = 1;
foreach ($config['columns'] as $column) {
......
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