Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.0-rc9
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2008 at 11:38 UTC
Updated:
23 Oct 2008 at 08:13 UTC
After an upgrade, some of my text fields are not shown anymore when editing a node. A downgrade did not solve my problem. The fields are still listed in the field list and the value is shown on display of the node, but the two fields are missing and updating a node overwrites existing values with empty strings.
Please help me as soon as possible, as it is a critical thing for me. thank you very much in advance.
Comments
Comment #1
karens commentedYou probably have updates to run. Check update.php.
Comment #2
jahwe2000 commentedI have found the reason, why only some fields are affected. I have added autocomplete in the form_alter hook.
I have used this line for that:
$form['field_autor_melodie'][0]['#autocomplete_path'] = 'autocomplete/author_js';
That once had worked, but does not anymore. Any idea how this comes? the updates all have run through
Comment #3
karens commentedIf you've form_altered the node, it's anybody's guess what is happening. You might have data from inactive fields which CCK will protect (but not display) when you save the node and your change might be interfering with that. You might be using the Content Permissions module which adds #access to fields that do not have permissions set on them, which will hide them but save their values, and your change might be interfering with that. Plus all the form elements have their own validation and submission processes and your changes could be screwing those up or causing them to be missed. And there could be other modules doing things that affect the form.
Basically you'll have to track the form values through the validation and submission processes to see when they are getting lost.
I don't have time to give you any more help than that, sorry.
Comment #4
jahwe2000 commentedAs far as I can tell, the data is not lost during the conversion. The fields are simply not shown and thus the values get overridden. The fields are shown again and work if I remove the autocomplete addition.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.