Sunday 05 January 2003 3:23:48 am
> I have created a new content class...
>
> I look at tables in database and there is a new row in
> "ezcontentclass" (and "ezcontentclass_classgroup") with my
> new class.
> > Why the admin interface don't show my new class? Again, I reply myself, so anyboy will know what happen. I think that it is a bug: When we create a new class eZPublish assign a value of "1" to field "version_id". But the script /kernel/class/classlist.php fetch *allways* classes with a version_id of "0" (around line 94
$classids = & eZContentClassClassGroup::fetchClassList( 0, $GroupID, $asObject = true);
$classes_list = & eZContentClass::fetchList( 0,
$asObject = true,
false,
$sort, $fields ); I we change version_id to 0 in tables ezcontenclass and ezcontentclass_classgroup our new content class show up in class list.
Happy new year Adolfo
|