Forums / General / Duplicated user account in User Class
Virgilio Lemos
Thursday 23 July 2009 7:01:34 pm
By mistake I have added a second User Account in the User Class template and I'm receiving the error message below (translated from portuguese version) when I try to remove the duplicated entry.Any idea on how to fix this?
The class definition could not be saved The following information is missing ou invalid: * attribute '': (12) Is not possible to remove the account: o The owner is being connected. o The account is being used by Anonimous user. o The account is being used by administrator user. o You can not remove the last class thar has user accounts.
Tuesday 28 July 2009 5:20:42 am
Is it a data base restriction?
André R.
Tuesday 28 July 2009 6:35:20 am
Its enforced in the ezuser data type, specifically eZUserType::classAttributeRemovableInformation().
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Tuesday 28 July 2009 11:21:46 am
It's is possible to modify the data type to allow the correction and change it again to the original specification?How can I do this?
Max Keil
Tuesday 28 July 2009 4:53:39 pm
Hi,
Yes it's possible:
The file is placed here "/kernel/classes/datatypes/ezuser/ezusertype.php" - the function as named before "classAttributeRemovableInformation" - on the basis of result warnings you can bypass the function and remove the attribute!
Mit freundlichen Grüßen Best regards Max Keil ____________________________________________________________ eZ Publish Gold Partner - http://www.all2e.com http://ez.no/partners/worldwide_partners/all2e_gmbh