Commit dd242003 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1474609: Unable to delete page description



Not updating description field if form value was empty

Change-Id: Icc545113fe300c92f94d81c77d502d6077aece63
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent c1731283
......@@ -214,6 +214,10 @@ function editview_submit(Pieform $form, $values) {
require_once('embeddedimage.php');
$view->set('description', EmbeddedImage::prepare_embedded_images($values['description'], 'description', $view->get('id')));
}
else {
// deleting description
$view->set('description', '');
}
$view->set('tags', $values['tags']);
if (isset($values['locked'])) {
$view->set('locked', (int)$values['locked']);
......
Supports Markdown
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