In node/node.pages.inc the $form['actions'], $form['options'] and $form['additional_settings'] have a fixed weight between 90 and 99, this causes them to appear between fields when more than 100 fields are present.

A temporary fix is to increase the fixed weights to a value between 900 and 1000, but I don't know if this has any negative consequences...

Comments

cilefen’s picture

Priority: Minor » Normal
Naddl2310’s picture

I have the same problem. Did nobody imagine, that one could have more than 100 fields?!

cilefen’s picture

A temporary fix is to increase the fixed weights to a value between 900 and 1000, but I don't know if this has any negative consequences...

Have you tried that? If that works, it is qualitatively no worse than what we have now, and it eliminates a problem. We could get that in, then consider a follow-up issue to ensure it works every time, by perhaps, automatically incrementing above the highest field weight.

FreeAndEasy’s picture

Issue summary: View changes
StatusFileSize
new1.37 KB

Yes, it seems to work without problems.
I attached a patch for it.

FreeAndEasy’s picture

Issue summary: View changes
FreeAndEasy’s picture

Status: Active » Needs review

FreeAndEasy’s picture

I have been using this patch for several months now, and it still works as expected (I found no problems).

treasury’s picture

It also happens with the user edit/registration form.

Version: 7.38 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

vikashsoni’s picture

StatusFileSize
new31.48 KB

@FreeAndEasy thanks for the patch
patch apply successfully for me

avpaderno’s picture

The patch still applies to latest 7.x branch. I tested it, and I did not find any issue.

poker10’s picture

Status: Needs review » Closed (won't fix)

Thanks for reporting and working on this.

In Drupal 7 there is no UI to manage form display (similar as in D10). So most of the sites are using hook_form_alter() to move form elements up/down and achieve the changes in the order. Maybe there are also contrib modules doing something similar.

I agree this is a bug, but I think we cannot change the default weights in this D7 phase, because a lot of sites simply rely on the current settings (and have done custom changes based on this default settings). I would say there is a way more sites using hook_form_alter() to move form elements than sites with 100+ node fields. And this change would cause their node forms to re-arrange, so it could have a big impact. If someone wants to change this, it is easy and can be done using the hook_form_alter().

Closing this as Won't fix. Thanks again for your effort here.