Cotonti / Cotonti

Fast, reliable and flexible PHP CMF/CMS
https://www.cotonti.com
BSD 3-Clause "New" or "Revised" License
92 stars 51 forks source link

Extra fields conflict bug #313

Closed trustmaster closed 13 years ago

trustmaster commented 13 years ago

[http://www.cotonti.com/forums.php?m=posts&q=2944 Original topic]

Location: admin.php?m=users&s=extrafields

When user try to type in FIELDNAME name already exists in database we get an Error while updating: Fatal error : SQL error : Duplicate column name 'user_name'

(In case I try to specify Extra field named NAME). There are no check at update routine I guess.

So, next time I fix it name to firstname and successfully update the value - I get an error at USERS page (users.php):

Fatal error : SQL error : Unknown column 'user_name' in 'order clause'

It seems the names of fields in databese sed_users are changed!

trustmaster commented 13 years ago

(In [804]) Fixed #327 + added support for registering existing fields as extra (for old sites with hand-made extras)