~bryce/launchpad-gm-scripts/stockreplies-revamp

Viewing all changes in revision 188.

  • Committer: bryce
  • Date: 2020-01-18 03:04:07 UTC
  • Revision ID: bryce@bryceharrington.org-20200118030407-y1yuiabf9312zgls
Restore original settings when selecting a response with undefined values

If a given stock reply has an empty or missing value for 'package' the
script would leave the package widget untouched.  If a previously
selected stock reply had inserted a value for package, this would cause
the new stock reply to show that changed value - requiring the user to
have to notice and fix it up manually.  Instead, keep track of what the
original package was, and restore to that value when it's undefined in
the stock reply.

Follow this same behavior pattern for importance, status, assignee, and
comment.

Fixes: https://bugs.launchpad.net/launchpad-gm-scripts/+bug/334040

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: