• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Setting column to same in entity value erases value...?

Liam W

Well-known member
#1
I've been trying to figure this out for a while, and I've come to the conclusion that it must be an XF issue.

When I set an entity field to it's existing value, and save it, the value is completely erased. The column in question has the unique and match keys set, and the value matches the entered regex.

I'm setting this value from inside the entity class, if that matters.

Any ideas?

Liam
 

Mike

XenForo developer
Staff member
#2
No idea really -- if this were true across the board, pretty much any ACP form would be broken.

Can you provide as reduced a test case as possible? (Ideally an entity file + DB schema and a test script.)