Fix the notification-id arg for the form notification update command #25
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