1283 Posts
Bucklash
6 years ago
1
Topic

Hi folks

Anyone experienced this before:

If I load an article that has values like this:

#__content.id: 123
#__cck_core.id: 987

And then save it...

RESULT

#__content.id: 123
#__cck_core.id: 987

AND 

#__content.id: 123
#__cck_core.id: 988

...I end up with a NEW entry in #__cck_core rather than updating the existing entry.

The cck value stored in introtext value has been updated to the new cck id.

I have no beforestore or afterstore stuff going on.

Sounds pretty random, anyone have any tips

Jon

Get a Book for SEBLOD
1283 Posts
Bucklash
6 years ago
0
Level 1

The answer:

I had the CCK field in the form as I wanted to use the value for other stuff.

However, when this field is in the form, it creates a new entry in #__cck_core and uses that new id.

When you remove the field, it reverts to the earliest #__cck_core.id value.

Instead, I duplicated the CCK field and set it's storage to #__store_item_content.cck i.e. Standard | Article | cck

Interesting... is it bug? dunno :)

Get a Book for SEBLOD