MFB: Unlock page when cancelling the edit.
authorJan Schneider <jan@horde.org>
Sun, 14 Feb 2010 18:20:23 +0000 (19:20 +0100)
committerJan Schneider <jan@horde.org>
Sun, 14 Feb 2010 22:24:05 +0000 (23:24 +0100)
wicked/templates/edit/standard.inc

index 77ac6dc..7addca6 100644 (file)
@@ -24,7 +24,7 @@ function preview()
 <div class="control">
  <input type="submit" value="<?php echo _("Save") ?>" class="button" />
  <input type="button" value="<?php echo _("Preview") ?>" class="button" onclick="preview()" />
- <a class="button" href="<?php echo $page->pageUrl() ?>"><?php echo _("Cancel") ?></a>
+ <a class="button" href="<?php echo $page->pageUrl()->add('actionID', 'unlock') ?>"><?php echo _("Cancel") ?></a>
  <?php if (!empty($GLOBALS['conf']['wicked']['require_change_log'])) echo Horde::img('required.png', _("Changelog is required"), '', $GLOBALS['registry']->getImageDir('horde')) ?>
  <strong><?php echo _("Change log") . ': ' ?></strong><input type="text" name="changelog" size="50" />
  <input type="checkbox" name="minor" id="minor" checked="checked" /><label for="minor"> <?php echo _("Minor Change") ?></label>