I needed to extend Ad node type with two CCK fields. One is image and one is text. When I submit new node for a firs time it doesn't save values provided for CCK fields. When I edit node again CCK fields got saved.

I suspect the bug is in node save which not invoke nodeapi properly

I have only ad_image ad type enabled so I don't know if it affect all ad types or not.

Comments

jeremy’s picture

Are you using the core CCK functionality, or a contrib module? Can you offer detailed steps for how to reproduce this?

vito_swat’s picture

I use contrib content.module with text CCK and image CCK enabled.

Steps to reproduce:
1. install contrib CCK module v. 1.5 stable
2. turn on content and i.e. text modules
3. go Administer >> Content types
4. Edit Ad type
5. Add new text filed. Name it i.e. intro. Give it default value like "this is test". Check "Filtered text (user selects input format)" (make sure to have filtered HTML as input format
6. Save filed settings
7. create new ad as usual. You may change default value of intro text or not. doesn't matter
8. view added ad.

Expected:
field intro have text entered during adding

Result:
field intro is empty (not showing)

9. edit this ad once again
10. put some text in intro field

Result:
This time everything is ok. Field intro is properly showing entered text.

If you have any problems with reproduction I can give you access to my test site.

vito_swat’s picture

Is there any progress? It's really annoying..

jeremy’s picture

I try and keep up with bugs, but I develop the ad module in my spare time. I don't actually use CCK, so this is not a high priority for me. I'll review it closer eventually, but only when I find the time.

jeremy’s picture

Status: Active » Fixed

Fixed in this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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