Closed (fixed)
Project:
Save Draft
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2012 at 12:59 UTC
Updated:
19 Jan 2018 at 05:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
valderama commentedhere are 2 patches (one with the modification, the second with a new file).
apply both.
Comment #2
valderama commentedchanging status to "needs review"
Comment #3
beeradb commentedI think this is super reasonable functionality and should be included. I did a review + cleanup of this patch and I believe it's good to go.
* Lots of whitespace and coding standards cleanups
* Moved the default to be enabled for all content types.
* Removed the update hook, as it was no longer needed (and wasn't originally used in the first place?).
Comment #4
populist commentedWould it be possible to have the Save Draft functionality default to being on instead of being required to turn on each time?
Comment #5
populist commentedCheck that. Looks like #3 may have done that.
Comment #6
johnhanley commented+1
Also back-port to Drupal 6.
Comment #7
rooby commentedHere is a new version of the patch in #3.
Changes are:
* A tiny bit of code cleanup.
* Changed the option from radios to a single checkbox as there is only enabled or disabled.
* Moved the fieldset summary js into the existing behavior instead of creating a new one (no point having them separate unless they are going to be in different files).
* Changed the js to automatically handle other checkbox settings that may be added in future (I am planning to add one in another issue).
* Changed the name of the save_draft variable to save_draft_enabled, because save_draft is the namespace and enabled is the variable.
* Removed the save_draft_get_setting() function as it is redundant.
* Changes the part that checks access & enable flag to check for enabled flag first so that the access check function isn't run for no reason.
*
Comment #8
rooby commentedSame patch as #7 but with tests to test enabled & disabled.
Comment #9
beeradb commentedCommitted #8 with one small change, I adjusted the weight on the save_draft tab so it wasn't the default tab when editing content types.
Thanks for the work guys.
Comment #10
valderama commentedI am happy to see this committed finally!
And thanks for the credit :)
Comment #11
rooby commentedGreat thanks. I was hoping this would get in as I was building on top of it for the patch in #1786442: Allow saving drafts with missing required fields.
Comment #12
rooby commentedSorry, but the patch in #8 was not quite right.
It was missing the install file that was in the older versions of the patch and had some file permissions changes that it shouldn't have had.
This one will fix it.
Comment #13
rooby commentedAs per #1786442-23: Allow saving drafts with missing required fields, which tests this patch along with the one in that issue, this should also be RTBC
Comment #14
mrpauldriver commentedI think this is important functionality.
Any chance that this commit and later patch can be rolled into an updated release?
Comment #15
dooug commentedApplied the patch from #12 cleanly against latest 7.x-1.x-dev. This also fixes the file permissions on save_draft.module and save_draft.test.
I tested the uninstall and the variables are removed. Works as expected. Thanks! Please commit this!
Comment #16
rooby commentedI have commit access now so I will commit in the next few days when I get a few minutes.
Comment #17
deanflory commentedWhen I use the latest file commits copied over 7.x-1.4 to create a "dev" version that doesn't exist on the project page, I get this WSOD error when attempting to enable the module:
I'm going to try it with just v1.4 and the patch in this issue without any other commits included, otherwise I'll deem this module unusable, what a mess. I've decided to just use the Save & Edit module instead as is provides the same functionality for new nodes.
Comment #18
rooby commentedI have had no internet at home for the last week but this week I will sort all this out.
I have now shown the dev versions on the project page
Comment #19
Renee S commentedAny luck with this? There hasn't been a new dev since before this issue. Thanks!
Comment #20
rooby commentedReally sorry peoples.
The follow up in #12 has been committed.
Comment #21
rooby commentedWill backport to drupal 6.
Comment #22
pmackay commentedIs there any chance of getting a v1.5 release out that would include this on 7.x?
Comment #23
maedi commentedWell the per content type setting does seem to be on the dev branch.
Comment #24
mrpauldriver commentedRemoving patch to be ported as D6 is nearly done with. Changing to RTBC as this needs to go into the next version for D7
Comment #25
rooby commentedThere is no action here for D7 as it has already been committed.
I would like to do a D6 commit for either this patch or an upgrade path to D7 since currently the 2 versions are out of sync.
I have planned some time to work on this module this weekend to go through the issue queue and get a new stable release out.
Comment #26
rooby commentedSince this has already been committed to D7 and D6 is no longer supported, setting back to 7 and marking as fixed.
I cannot reproduce the issue in #23 however if you can please feel free to reopen.