Skip to content

Commit

Permalink
fix for disabling active notification types when switching notificati…
Browse files Browse the repository at this point in the history
…on status
  • Loading branch information
jakubmikita committed Jun 24, 2018
1 parent 87fcd39 commit d94b8a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions class/Admin/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public function save( $post_id, $post, $update ) {
return;
}

// Bail if we are saving just the status.
if ( isset( $_POST['action'] ) && $_POST['action'] == 'change_notification_status' ) {
return;
}

$this->postdata->set_post_id( $post_id );
$this->postdata->save_notification_data( $_POST );

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ Yes, you can. [See the detailed guide](https://docs.bracketspace.com/docs/includ
= [Next] =
* [Fixed] Duplicated meta for active notification type.
* [Fixed] Post Title merge tag HTML entities, thanks to @freshjustin.
* [Fixed] Problem with disabling active notification types when switching notification status, thanks to @freshjustin.
* [Added] Notification duplicator to easly duplicate notifications.

= 5.2.2 =
Expand Down

0 comments on commit d94b8a0

Please sign in to comment.