Repository navigation
Fix the notification-id arg for the form notification update command - #25
Merged
Merged
Conversation
karlpotter
approved these changes
Nov 18, 2019
yoren
added a commit
that referenced
this pull request
Mar 10, 2020
* master: Fix network activate install flag (#26) update change log Fix form notification update command (#25) update change log update docblock sanitize the form export file name bump version; update change log Add missing gf subcommand in documentation merges changes from github out of sync with public plugin adds optional filename flag for form export entry list: same features for json as ids format Permanently delete trashed entries Add missing entry subcommand in inline documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #20 and #24
Fixes a notice which occurs when using the command without including the
<notification-id>arg.Testing Instructions
<notification-id>arg e.g.wp gf form notification update 133 --notification-json='{"id":"5bacece91e2c9","to":"{admin_email}","name":"Admin Notification","event":"form_submission","toType":"email","subject":"New submission from {form_title}","message":"{all_fields}","isActive":false}'Error: Notification not foundis returned and the notice is recorded in the sites debug.log fileSuccess: Notification updated successfullyis returned<notification-id>arg e.g.wp gf form notification update 133 5bacece91e2c9 --notification-json='{"to":"{admin_email}","name":"Admin Notification","event":"form_submission","toType":"email","subject":"New submission from {form_title}","message":"{all_fields}","isActive":true}'Success: Notification updated successfullyis returned<notification-id>arg and without passing the notification id in the json e.g.wp gf form notification update 133 --notification-json='{"to":"{admin_email}","name":"Admin Notification","event":"form_submission","toType":"email","subject":"New submission from {form_title}","message":"{all_fields}","isActive":false}'Error: Please specify the ID of the notification to be updatedis returned