Commit 11f873ff authored by Stacey Walker's avatar Stacey Walker
Browse files

Edit collection missing navigation field (bug: 619074)


Signed-off-by: default avatarStacey Walker <stacey@catalyst.net.nz>
parent a0d455b0
......@@ -58,24 +58,14 @@ else {
}
$elements = Collection::get_collectionform_elements($data);
if ($new) {
$elements['submit'] = array(
'type' => 'submitcancel',
'value' => array(get_string('next') . ': ' . get_string('editviews', 'collection'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'collection',
);
}
else {
$elements['id'] = array(
'type' => 'hidden',
'value' => $id,
);
$elements['submit'] = array(
$submitcancelstr = $new ? array(get_string('next') . ': ' . get_string('editviews', 'collection'), get_string('cancel'))
: array(get_string('save'), get_string('cancel'));
$elements['submit'] = array(
'type' => 'submitcancel',
'value' => array(get_string('save'), get_string('cancel')),
'value' => $submitcancelstr,
'goto' => get_config('wwwroot') . 'collection',
);
}
);
$form = pieform(array(
'name' => 'edit',
......
......@@ -220,6 +220,10 @@ class Collection {
'type' => 'hidden',
'value' => $data->owner,
);
$elements['navigation'] = array(
'type' => 'hidden',
'value' => $data->navigation,
);
}
return $elements;
......
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