Here is a patch which ports the module to drupal7 :)
| Comment | File | Size | Author |
|---|---|---|---|
| #63 | prepopulate.tar_.gz | 4.27 KB | xlyz |
| #52 | prepopulate_date.zip | 252.42 KB | artatac |
| #13 | prepopulate_d7_port-935990-13.patch | 1.13 KB | idflood |
| #10 | prepopulate d7 port-935990-10.patch | 1.12 KB | idflood |
| #5 | prepopulate-935990-port_7-5.patch | 1.75 KB | idflood |
Comments
Comment #1
Coupon Code Swap commented+1 subscribe
Comment #2
alberto56 commentedSubscribing, thanks.
Comment #3
kehan commentedsubscribing
Comment #4
idflood commentedI got a notice with the patch for some fields I'm trying to prepopulate ( but it's still working ).
Notice: Undefined index: #type in _prepopulate_request_walk() (line 62 of .../sites/all/modules/prepopulate/prepopulate.module).
If I remove the check '&& $form[$requestvar]['#type'] != "value"' there is no more notice and fields are still prepopulated. But I'm sure it's not the right thing to do.
Comment #5
idflood commentedI'm not sure it's the perfect solution but I made a little change to the verification. In this patch I use:
isset($form[$requestvar]['#type']) ? $form[$requestvar]['#type'] != "value" : TRUE
I've also removed the files[] from the .info since they are no longer required if there is no class or interface registered in them.
Comment #6
dennys commentedI just apply patch #5 in Drupal 7.0 and it's ok.
Comment #7
kehan commentedSubscribing
Comment #8
roam2345 commentedSubscribing
Comment #9
danny_joris commentedsubscribing
Comment #10
idflood commentedHere is a reroll of the last patch. I had to change the logic a bit.
from: if (!is_null($form['#default_value']))
to: if (isset($form['#default_value']) ? !is_null($form['#default_value']) : FALSE)
Seems to be working but needs some testing
Comment #11
roam2345 commentedBeen using the previous patch here http://www.bayetecakes.co.za , clicking on the register link uses it. Rather simple case but will check out this new patch soon, with some testing my side.
Comment #12
webankit commentedThe pacth could not be applied since there is a new dev version and moreover the function has been updated ...
Comment #13
idflood commentedHere is a reroll of the last patch...
Comment #14
unleet commentedsubscribing
Comment #15
sergiofg commentedsubscribing
Comment #16
mthomas commentedsubscribing
Comment #17
aethiolas commentedsubscribing
Comment #18
marcoka commentedsubscribe
Comment #19
ropaolle commentedSubscribe
Comment #20
bryancasler commentedPatch in #13 seems to work against the git version
Comment #21
Mel55113 commentedSubscribe
Comment #22
cwightrun commentedSubscribing!
Comment #23
xandeadx commentedSubscribing
Comment #24
Encarte commentedsubscribing
Comment #25
idflood commentedpatch still apply correctly. if you want to test it:
git clone --branch 6.x-1.x http://git.drupal.org/project/prepopulate.git
cd prepopulate
wget http://drupal.org/files/issues/prepopulate_d7_port-935990-13.patch
git apply prepopulate_d7_port-935990-13.patch
rm prepopulate_d7_port-935990-13.patch
Comment #26
tebb commentedCan this be released for D7 now/soon?
Comment #27
idflood commentedThe patch needs to be tested/reviewed before it get committed I think. I contacted a committer to see I he can do something with it.
Comment #28
Trunkhorn commentedsub
Comment #29
lightstring commentedSubscribing
Comment #30
giorgio79 commentedIt has been six months since dereine and idflood posted this patch, perhaps we can consider this module abandoned, and idflood could apply for maintainership if interested?
Here is how to
http://drupal.org/node/251466
Comment #31
idflood commented#30: good idea, I've finally asked to be a maintainer. So if this goes well, you will see as soon as possible a 7.x-2.x-dev version available.
Comment #32
CatherineOmega commented#31: Looking forward to it!
Comment #33
jbrauer commentedThis module is not abandoned and a port to a D7 version will be made available as soon as it can be. Apologies for the lack of details but there are some things that need to be updated before we're ready for a D7 version (which is why a branch isn't yet open in git).
Comment #34
videographics commentedThx for the update. Waiting patiently...
Comment #35
Trunkhorn commentedA core update is holding this up?
Comment #36
drasgardian commentedI followed the instructions in #25, but then if I add something like this to the end of my url
/node/add/agenda?edit[title]=blah
it does pre-populate the title field, but also shows an error
Notice: Undefined index: title in prepopulate_form_alter() (line 29 of .............../prepopulate.module
Comment #37
boobaaSubscribing. (Internal ref. #949)
Comment #38
KirstenLangholz commentedAnd for the young and inncocent ;)))) - could sombody please make a dev shot with the patches attached for easier install and testing?
Thank you sooooo much!
Comment #39
eliza411 commentedSubscribing. Thanks for your work on this!
Comment #40
alberto56 commented@eliza411 please specify why you changed this to needs work. Meanwhile I have set it back to needs review.
Cheers,
Albert
Comment #41
eliza411 commentedDidn't meant to do that. Thanks for setting it back.
Comment #42
bjalford commented#25 worked for me. I'd suggest rolling out a D7 version using patch in #25 then close this ticket and raised separate tickets for any bugs.
Comment #43
matt2000 commentedRTBC+1. Patch is working great here.
Comment #44
jbrauer commentedI've branched for Drupal 7 but the patch here is against an older insecure branch SA-CONTRIB-2010-086 - Prepopulate - Access Bypass. Please do not use this patch against the 6.x-1.x branch on any production sites as it would be vulnerable to known security issues. I'll look at rolling a patch this weekend if nobody beats me to it.
Comment #45
alexbk66- commented+1
P.S. I had to pick a 6.x version as there's no 7. But I wonder how everybody else managed to add comments?
Comment #46
Cheek commentedFollowing..
Comment #47
mike503 commentedSubscribing
Comment #48
David D commentedSubscribble
Comment #49
artatac commentedsub
Comment #50
andrew7 commented+1
Comment #51
a.siebel commentedsubscribe
Comment #52
artatac commentedIf it helps.. we have been working to get this working on D7, but have had to adapt it to work correctly with dates. and the working alteration is below and as an attached forked module (as it now may not work with non date fields). I hope that this helps others until the real d7 version is available. Of greater minds than mine polish the attached up!
Comment #53
geek-merlinsub
Comment #54
mgiffordGood to see this coming along.
Comment #55
joekotvas commentedSubscribing. Can anyone point me toward some documentation on how to use patches? I'd like to try those posted here, but I'm not sure where to start.
Comment #56
artatac commentedhttp://drupal.org/node/620014
Comment #57
eliza411 commentedIt's probably worth noting that those directions reference using -p0 and since the Git migration, there's been a transition to using -p1 ... I'm not sure how fully complete the transition is, but if -p0 fails, trying -p1 is worth a shot.
Comment #58
joekotvas commentedThanks!
Comment #59
jbrauer commentedNote that the patches here will leave your site insecure. Contributions to patches based on the 6.x-2.x branch with security issues fixed welcome.
Comment #60
likewhoa commentedthe 7.x branch is not compatible with current -dev drupal
Comment #61
TimelessDomain commentedsubscribing
Comment #62
xlyz commentedsubscribing
Comment #63
xlyz commentedHere attached a tarball with a port to 7.x based on latest 6.x-2.x-dev code.
Code is available in a sandboxed project as well:
Comment #64
TimelessDomain commentedSWEET! It works
(These are harder - for ex. I couldn't figure out checkboxes & radio buttons, but i got the free-tagging widget to work
I have not tested other fields yet but it would seem that #63 is in fully working order. THANKS. We should add these D7 specific examples to the documentation. Please post others as you find them. If you can figure out how to populate checkboxes as well, please let us know.
Comment #65
Cheek commentedAwesome, this is gonna save me a lot of time copy & pasting. Thanks guys!
BTW, fields work as well: "&edit[field_fieldname][und][0][value]=fieldtext"
Comment #66
Fidelix commentedSubscribing... Gonna need this for a future project ^^
Comment #67
mstrelan commentedsubscribe
Comment #68
jbrauer commentedThanks. Committed to 7.x branch without a lot of additional testing. I'll get a -dev release out in the next cycle so we start to get more testing.
Comment #70
Kman2123 commentedIs there a reason this is not in full release yet?
Comment #71
Kman2123 commentedComment #72
likewhoa commented@Kman2123 maintainer decides if it should be tagged as a major release, as he stated a -dev release is out. Give it time and I am sure he/she will tag a major release.
Comment #74
Kman2123 commented@jbrauer Thanks for taking a look at this!
Comment #75
likewhoa commentedthis should be closed @Kman2123, why did you reopen it?
Comment #76
Kman2123 commentedI requested @jbrauer to look at it and see if it can be moved from dev to full so technically it's not fixed.
Comment #77
jbrauer commentedThe port is done and in a development branch but there are bugs to fix prior to a release being made.