Closed (fixed)
Project:
modr8
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2007 at 23:33 UTC
Updated:
17 Mar 2008 at 03:21 UTC
Jump to comment: Most recent file
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | 6x-modr8-198584-21.patch | 29.01 KB | pwolanin |
| #18 | modr8.patch | 25.63 KB | alcroito |
| #13 | modr8.patch | 25.65 KB | alcroito |
| #12 | modr8.patch | 25.51 KB | alcroito |
| #9 | modr8.patch | 24.36 KB | alcroito |
Comments
Comment #1
alcroito commentedThe patch below is to be applied to the latest HEAD version of modr8.
It's a port to drupal 6.
Cheers, Placinta. ^_^
Comment #2
alcroito commentedA few changes from the previous one.
Comment #3
alcroito commentedThere was a error regarding sending mail in the previous patches.
This one fixed it. :)
Comment #4
webchickGave the code an initial pass-through, and overall looks like very good work! I noticed you even fixed some existing coding standards-compliance issues. :) I had a hard time coming up with things, but I found a few minor stuff...
Code review
When diffs do this, it usually indicates you're not completely up to date with what's in cvs. Try "cvs up" to get the latest changes, to ensure that your patch stays up to date.
I wouldn't remove this function. People need that if they're upgrading from 4.7.x => 6.x
This shows up a couple times; just remove those lines.
Let's make sure that function has a comment header.
Some bugs
- When I head to admin/content/modr8 with a post in moderation, I receive:
-
The notes field is also missing. Although after I saved the settings form (?) it re-appeared? Strange.. :\Same problem exists in 5.x. Out of scope.- In the Content moderation log @ admin/reports/modr8:
- When saving the settings form, I got:
- After checking off options to receive e-mails on various actions, when submitting the moderation form, I get:
- As an anonymous user, I create a story node that's unpublished and moderated by default. In 5.x, I get "This Story will be submitted for moderation and will not be accessible to other users until it has been approved." and redirected back to the home page. In 6.x, I get an access denied page and no message.
I'm really sorry I didn't get to this until just now -- it's been a crazy day. :(
Comment #5
webchickAlso note that I wasn't able to actually test the e-mail, as something's borked with my computer atm.
Comment #6
alcroito commented1) I'm not sure what should I do with these versions being different, cause I don't have experience with svc.
2) I implemented the modr8_update_1000() function.
3) Not sure where you found plain whitespaces.
4) Added a comment header to modr8_theme() functions.
Bugs:
Not sure about the notices errors, cause they don't appear on my server, but I defined the variables with a void string anyhow.
Same goes for the notice: Array to string conversion, I didn't find what's the cause, because I don't see the notice. By the way my error reporting is set to E_ALL.
About the anonymous user, it isn't my fault. That's drupal's 6 main behavior. I tried to create a simple story unpublished, without being added to the moderation queue, by an anonymous user, and it displays Access Denied, whereas in drupal 5 it redirect's to the main page.
Below is the new patch.
Comment #7
catchOK I applied this on 6.x with the latest HEAD tarball from http://drupal.org/node/96672
A few things -
Patch has windows linebreaks - an easy way to remove them is to use a text editor like Notepad++ to change the format of the .patch file.
The .info hunk didn't apply but I added the core compatibility manually.
I also get the notice on saving the settings form:
notice: Array to string conversion in drupal6/includes/form.inc on line 715.Didnt' recieve e-mails, but that could me my server too.
Overall it looks good! But marking back to needs work for those bits.
Comment #8
pwolanin commentedI was away last week - I'll take a look soon. @catch and webcheck - thanks for reviewing already.
Comment #9
alcroito commentedHere is the new patch where the notice error was solved, something related to the settings_form_validate function, and the patch is also in UNIX format.
Comment #10
catchI reviewed this, and everything I tested seems to be working except drupal_mail() now.
Comment #11
webchickYeah, drupal_mail is an absolute bugger. :( It got changed all around because of the i18n stuff. There is documentation about these changes at http://drupal.org/node/189367 but if that doesn't clear it up, you might try asking on the developer mailing list: http://lists.drupal.org/listinfo/development
Comment #12
alcroito commentedOkay, I believe this will be the last version of the patch (at least I hope it to be).
I repaired mailing functions in this one, and implemented hook_mail().
I believe the patch is good to go.
Comment #13
alcroito commentedThe most final possible version of them all :) Mails aren't sent to anonymous users.
Comment #14
catchAll fine as far as I can see. Nice work!
When you wake up, post the last patch over at google so we can mark it completed.
Comment #15
pwolanin commentedA quick read through - generally it looks nice, but it'll need a few more tweaks to be an ideal upgrade.
for example:
should be removed in favor of specifying the file in hook menu.
Also, you define both of these menu paths:
admin/reports/modr8andadmin/reports/modr8/%/%which isn't really right. Also you use this to replace the existingadmin/logs/modr8path - why?Comment #16
catchpwolanin: admin/logs no longer exists.
Comment #17
pwolanin commented@catch - ah - ok. I guess this is a watchdog -> dblog change. Sorry to be dense.
Comment #18
alcroito commentedOk. Changed the places of the require_once to be in hook_menu, and also deleted admin/reports/modr8/%/% cause it realy doesn't have to be there (although previously it didn't work to work without it though).
Here is the patch.
Comment #19
wmostrey commentedConfirming this to be RTBC. Applies cleanly and works advertised. Good job!
Now go get another one ;)
Comment #20
alcroito commentedRoger that! :)
Comment #21
pwolanin commentedcommitted the attached patch - largely the same as above with a few more tweaks, especially for notices for undefined, etc.
Comment #22
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.