Skip to content

Commit

Permalink
Fix for compatibility issue with quick edit extension
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Mar 6, 2024
1 parent 4358ed6 commit ca12f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function get_selected_prefix($event)
$prefix_id = $this->request->variable('topic_prefix', 0);

// If we are in preview mode, send back the prefix from the form
if (!empty($event['preview']))
if (!empty($event['preview']) && $event['mode'] !== 'edit')
{
return $prefix_id;
}
Expand Down

0 comments on commit ca12f33

Please sign in to comment.