Skip to content

Commit

Permalink
Prevent canceling a figure edit from exiting nested edit session
Browse files Browse the repository at this point in the history
  • Loading branch information
msakuta committed May 20, 2024
1 parent 3a765b3 commit a685201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ function handle_newfigure($event) {
// not sure if/how this would happen, we restore all data and hand over to section edit
$INPUT->post->set('target', 'section');
$TEXT = $fields['pre'].$fields['text'].$fields['suf'];
$ACT = 'edit';
$INPUT->post->set('wikitext', $TEXT);
$event->data = 'edit';
break;
case 'save':
// return to edit page
Expand Down

0 comments on commit a685201

Please sign in to comment.