I'm trying to use this module to allow users to change the "Publishing options": "Published" and "Promoted to front page" for their own content. While this works in itself, every time a user now edits his own content and saves it again, the "authored by" information becomes erased and is then displayed by Drupal as "Anonymous".
I've verified that this is indeed cause by "Override Node": If I disable this module, the "authored by" information is not erased when a user updates one of his nodes.
I also found a workaround: if I additionally give users the permission to "override blog authored by option", the "authored by" information is not erased.
A similar problem happens with "authored on", if the user has permission to change it. I noticed that when hitting "Preview", the "authored on" information becomes erased (blank).
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | override_node_options.module.patch | 1.29 KB | Tom Freudenberg |
| #2 | override_node_options.346748.D6.x-1.patch | 877 bytes | TUc |
Comments
Comment #1
timmillwoodThanks I will look into it and try to get a new release out ASAP.
Comment #2
TUc commentedI can confirm this issue.
I wrote a patch for it. It checks whether $node->override_authored_by is set.
Comment #3
timmillwoodComment #4
timmillwoodcommitted
Comment #5
domesticat commentedI'm not sure this is fixed. Installing 6.x-1.7 actually caused this problem to start for me. Since the April 7 dev release, anyone that I've given "override [nodetype] authored by option" permission to is having their posts saved as Anonymous by default, even though anonymous users can't create content on the site.
Hoping someone else can confirm the problem.
Correction: I originally marked this as 6.x-dev, but in fact the version is 6.x-1.7.
Comment #6
domesticat commentedComment #7
timmillwoodok, I see the issue. I'll look into it.
Should just need a simple 'if' statement somewhere.
Comment #8
timmillwoodFixed in Version 6.x-1.8
Comment #9
philsward commentedShould I re-open this issue or create a new one? I installed 1.8 last night from 1.4 (I think 1.4), and I am having this same issue. It doesn't appear to be fixed yet...
The ONLY option I have turned on, is "override post publish" (post being the content type I have setup)
Any ideas?
Comment #10
Flying Drupalist commentedYep, this is not fixed. I can confirm this bug. I think I'll downgrade for now, to... 1.6?
Comment #11
rene_w commentedNo point in downgrading: 1.6 was the version I originally reported the bug against.
Comment #12
Flying Drupalist commentedI was using this module for a while, and the bug came for me in a recent version. I only hope this gets fixed fast though.
Comment #13
leeneman commentedThis bug does not appear to be limited to the "Authored by" information. Also the "authored on" information seems to be reset to the current date and time. The solution for me was to roll-back to 1.4
Comment #14
timmillwoodok, I had it working, so can we clarify the bug and I'll go back and check
Authored by field
- When the user does not have the "Override authored by" permission it gets set to Anonymous rather than their username (and on preview?).
- When the user does have the "Override authored by" permission it doesn't save the overridden value or their username (and on preview?)
Authored on field
- When the user does have the "Override authored on" permission it doesn't save the overridden value (and on preview?).
I'll try to take a look today, if you can feed back with specific bugs (from the list above, or not) that would be great, and patches would be better.
Thanks
Comment #15
timmillwoodI hope this is all fixed in version 6.x-1.9
Comment #16
gunzip commentedi think that it should leave the 'created' ($node->created) value unaltered on save if "authored on" is hidden.
with 6.x-1.9 i get that parameter overwritten every time i save the node so created becomes => changed.
Comment #17
mindgame commentedI'm using 6.x-1.9 and I can confirm #16.
I changed line #259 from
to
Comment #18
Tom Freudenberg commentedPlease see follwing patch which is for fine for us when using 6.x-1.9
Comment #19
timmillwoodTom,
Thanks for the patch.
I hope to test it this week, and will then commit. If anyone else could test this would be great.
Comment #20
mr.alinaki commentedLast posted patch works fine! Thank you, Tom Freudenberg!
Comment #21
petednz commentedsub - sounds like my search for this may be easy once the commit is made - thanks to all for sorting this - one thing off the list - back to the list
Comment #22
frjo commentedI have the same problem as #16 and the patch in #18 fixes it for me.
Comment #23
timmillwoodCommitted to branch DRUPAL-6--1.
Comment #25
daniel wentsch commentedIt seems that this problem still occurs when using domain access.
On every but the default domain the authored by information is not being saved if a user doen't have permission to alter this field.
Comment #26
daniel wentsch commentedOkay, found out it was a different bug in Domain Admin module:
#859538: Content submitted by role "Editor" is marked "Submitted by Anonymous"
1.x. dev of domain admin fixed the issue.