The Entity reference autofill module gives Entity reference autocomplete fields support
to populate fields in their form with values from the referenced entities.

Link to project page

https://drupal.org/sandbox/poolfi/2140197

Git repository

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/pool.fi/2140197.git entityreference_autofill

Feature

An example feature demonstrating the module is available from:
git clone --branch master pool.fi@git.drupal.org:sandbox/pool.fi/2142645.git entityreference_autofill_example_feature
(Create nodes of type "Work order" to see the module in action)

Source

Checkout the source without using git here:
http://drupalcode.org/sandbox/pool.fi/2140197.git

Manual reviews of other projects

https://drupal.org/comment/8221641#comment-8221641
(Follow-up)https://drupal.org/comment/8248271#comment-8248271

https://drupal.org/comment/8227437#comment-8227437
(Follow-up)https://drupal.org/comment/8248089#comment-8248089
(Follow-up)https://drupal.org/comment/8252893#comment-8252893

CommentFileSizeAuthor
autofill.jpg26.35 KBjgullstr

Comments

kscheirer’s picture

Status: Needs review » Needs work
Master Branch
It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.

You have a number of style issues reported here: http://pareview.sh/pareview/httpgitdrupalorgsandboxpoolfi2140197git, especially the non-unix line endings and form_state['values'] should be fixed. I did not review the full module.

----
Top Shelf Modules - Crafted, Curated, Contributed.

jgullstr’s picture

Status: Needs work » Needs review

Thanks for your comments, kscheirer. I've corrected your suggestions, except the form_state warnings, which in this case are by design. I've tried to clarify this in the source comments.

PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

jgullstr’s picture

Issue summary: View changes

Added feature info

jgullstr’s picture

Issue summary: View changes
jgullstr’s picture

Issue summary: View changes

Added manual review link, updated drupalcode.org link

christianadamski’s picture

Hi jgullstr,

I have not even checked out your code yet to be honest, so maybe I am missing the point. Could you maybe describe a bit better, what exactly your module tries to achieve in the description?

rosk0’s picture

Status: Needs review » Needs work

You have dependency(entityreference_autofill.module:203) to entity module which doesn't stated anywhere. This should be stated in info file.

As soon as this is fixed it is good to me.

jgullstr’s picture

Status: Needs work » Needs review

Thanks RoSk0, great catch! Must've missed that one since its already inherited from the entityreference module. Updated and commited.

jgullstr’s picture

Thank you for your feedback, ChristianAdamski. I've tried to clarify what the module does on its project page. I'm not very good at explaining, but I hope it will clear things up a little :P

jgullstr’s picture

Issue summary: View changes

Added manual review, removed commit info from drupalcode.org link

basant’s picture

Assigned: Unassigned » basant
Status: Needs review » Active
jgullstr’s picture

Status: Active » Needs review
basant’s picture

Jgullstr, thanks for that link.

I am sorry but I failed to understand what your module does, even my two fellow developers were clueless after reading the description.

What I did -
1. created a content type "abc"
2. created one more content type "xyz" and added two fields to it
a. abc_ref - entity reference to abc
b. a_fill - textfield
3. edited "abc" and added instance of a_fill to it.
4. edited "xyz" -> abc_ref , in autofill settings, i checked "Enable autofill for this field" , "Overwrite existing data" and "a_fill"

What next (if I am on correct path), it does nothing, I created few contents for abc and then few for xyz , but did not see any autofill.

Please guide me what to do next

jgullstr’s picture

Hello basant,

I'm sorry to hear that, I will try to yet again update the description in the following days. Have you tried to install the feature module that is provided in the project application description? Install that and first create one "work order" content. Then create another "work order" and select the first one in the "Base order" field to see referenced data get loaded into the form.

Thanks for your time and input and I apologize for not being clear enough.

EDIT: I see I failed to answer your question. When set up as you have specified, the module should fetch "a_fill" data from "abc"-nodes into the "a_fill" field, when selecting a node from the "abc_ref" (autocomplete widget) field, on a "xyz" form.

jgullstr’s picture

Issue summary: View changes

Added follow-up review

jgullstr’s picture

Issue summary: View changes

Added follow-up review

jgullstr’s picture

Issue summary: View changes

Added follow-up review

jgullstr’s picture

Issue tags: +PAreview: review bonus

Added review bonus tag

jgullstr’s picture

Assigned: basant » Unassigned
klausi’s picture

Assigned: Unassigned » stborchert
Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: review bonus

Looks good to me after a manual review! Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

Assigning to stBorchert as he might have time to take a final look at this.

stborchert’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contribution, Josef!

I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.