Formfilter mangles CCK's "Manage fields" screen

dkruglyak - September 28, 2007 - 01:48
Project:Formfilter
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs work
Description

The title says it all. Create a group, add a field to a group and watch it disappear from the manage tab.

Looks like there is a bug in the theming function, theme_content_admin_field_overview_form, in content_admin.inc. Quick dpm on $form array shows that groups are not passed in #table array, which is the only one being themed.

This used to work, so I hope this could get fixed quickly... The problem makes groups unmanageable.

#1

dkruglyak - September 28, 2007 - 19:24
Component:General» fieldgroup.module

This bug is all about groups, so filing under fieldgroup.module

#2

dkruglyak - September 28, 2007 - 22:35
Title:"Manage fields" screen does not show groups / grouped fields» Formfilter mangles CCK's "Manage fields" screen
Project:Content Construction Kit (CCK)» Formfilter
Version:5.x-1.x-dev» 5.x-1.x-dev
Component:fieldgroup.module» Code
Category:bug report» task
Priority:critical» normal

OK, the above issue results from turning on formfilter's nodeform simplification option.

The reason is that CCK generates a dummy form in Formfilter mangles CCK's "Manage fields" screen.

Possible fix would be to simplify node form only if a path condition holds (like in block visibility).

#3

nedjo - September 30, 2007 - 15:14

Yes. I'd welcome a patch. I believe CCK head now includes a property that's added to the node to indicate it's being loaded as a dummy form. Until that reaches stable, we could test for arg(0) != 'admin'.

#4

nedjo - September 30, 2007 - 15:43
Status:active» needs review

Draft patch, untested.

AttachmentSize
formfilter-cck-admin.patch 1.17 KB

#5

levavie - December 30, 2007 - 19:27

No, it didn't work.

But here is another temporary patch which I've tested to work.

Amnon
-
Professional: Drupal Israel | Drupal Development & Consulting | Effective Hosting Strategies | בניית אתרים
Personal: Hitech Dolphin: Regain Simple Joy :)

AttachmentSize
formfilter-cck.patch 536 bytes

#6

levavie - December 30, 2007 - 19:29

It's not only group fields. This patch also fixes the state where imagefields disappear.

#7

nedjo - December 30, 2007 - 22:34
Status:needs review» needs work

Thanks for the patch.

The cck_dummy_node_form property is now in CCK's stable release, so we should use it. See the comment in my patch, above.

This patch also fixes the state where imagefields disappear.

Could you please give more details about this additional issue? On which form or forms does it appear? Thanks.

#8

MartysMind - January 5, 2009 - 05:30
Category:task» bug report
Priority:normal» critical

This is still an issue in the release branch 5.x-1.0. The above patch works, can we apply this so we can use CCK? Has this been applied to Dev?

#9

momper - January 12, 2009 - 11:18

subscribe

#10

reubidium - January 23, 2009 - 21:19

I was seeing that the $form parameter for formfilter_form_alter has a cck_dummy_node_form set by the CCK manage fields admin screen as $form['#node']->cck_dummy_node_form (true).. seems like this would be a better pattern than checking only if arg(0)==admin ..

 
 

Drupal is a registered trademark of Dries Buytaert.