Hi, thanks for the this module to make data entering easier.

In my project, I try to use this module to populate default user data in the user adding form and confront this issue.

The problem is found in the following code:

if (element_child($requestvar) && !is_null($form[$requestvar]) && $form[$requestvar]['#type'] != "value") {

However, if I want to populate user name through the link fragment, will looks like edit[account][name]=test

account has no #type value, therefore it might be changed as

      if (element_child($requestvar) && !is_null($form[$requestvar])) {
        if (isset($form[$requestvar]['#type']) && $form[$requestvar]['#type'] == "value") {
          continue;
        }

It works in D7.

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drewish’s picture

subscribe.

tamouse’s picture

Version: » 7.x-2.x-dev
FileSize
120.32 KB

I am getting a (similar) problem with this version (7.x-2.x-dev) using Prepopulate with freelinking. When I create a new freelink in a node, I get hit with all these notices, and sometimes the page refreshes to a blank page. If I go back to the page, navigating to it from the top, it seems to work, but it's really frustrating trying to build out this site with all these notices popping up.

See attached pdf printout of a typical page with this problem after it's been saved.

tamouse’s picture

Adding to the comment, I'm attaching the relevent apache error log when trying to display the node with the freelinked markup:

Jan van Diepen’s picture

Got similar messages generated by code on lines 79 and 85.
Added a patch because we need it in an installation profile.