WordPress.org

Making WordPress.org

Opened 6 months ago

Last modified 3 months ago

#2851 assigned defect

Turn off Auto-Save for Un-named Vendor Payments and Reimbursement Drafts

Reported by: andreamiddleton Owned by: miss_jwo
Milestone: Priority: high
Component: WordCamp Site & Plugins Keywords: needs-patch good-first-bug
Cc:

Description

Organizers are running into trouble when they open a payment request, upload the media files of receipts, and then let the post sit, un-named, until it auto saves. The problem occurs if you forget that you started that draft and closed all your tabs or something: because the draft wasn’t named, it won’t show up on the list of payment or reimbursement drafts. BUT, when the organizer comes back to make a new draft and tries to attach the already-uploaded files to the payment request from the media library, the attachments fail because we don't allow media files to be attached to multiple payments or reimbursement posts.

The work-around is to go to the media library and “detach” the files from the auto draft post that they can’t see anywhere, but that's a pretty bad user experience.

We can't just allow people to attach media files of receipts to multiple payment/reimbursement posts, because we don't want to pay or reimburse on the same invoice or receipt twice. I think if we turn off auto-save for un-named payment and reimbursement drafts, it will solve this particular problem.

Change History (7)

#1 @coreymckrill
6 months ago

  • Keywords needs-patch added
  • Owner set to coreymckrill
  • Status changed from new to accepted

#2 @coreymckrill
3 months ago

  • Keywords good-first-bug added

This ticket was mentioned in Slack in #meta-wordcamp by coreymckrill. View the logs.


3 months ago

#4 @coreymckrill
3 months ago

  • Owner changed from coreymckrill to miss_jwo
  • Status changed from accepted to assigned

#5 follow-up: @grapplerulrich
3 months ago

After playing around with this for some time. The problem is that WordPress saves the post as auto-draft if it does not have a title. If the post has a title it saves it to draft status.

The solutions that I see are adding a default title so that there is always a title or blocking the attaching of files till there is a title.

#6 in reply to: ↑ 5 ; follow-up: @miss_jwo
3 months ago

Replying to grapplerulrich:

The solutions that I see are adding a default title so that there is always a title or blocking the attaching of files till there is a title.

I really like that as a solution. I had thought of other solutions and tehre were teh soluctiosn that we discussed on Slack as a team but just adding a default title would fix the issue and be simple enough to fix.

@andreamiddleton would you be happy with a solution where we just add in a default title per new autosave if any field as been filled in?

#7 in reply to: ↑ 6 @andreamiddleton
3 months ago

@andreamiddleton would you be happy with a solution where we just add in a default title per new autosave if any field as been filled in?

Yes, I'd prefer the default title solution. Blocking the attachment of files sounds like it'll be frustrating for users. :)

Note: See TracTickets for help on using tickets.