Subversion Repositories ezxajax_classattributes

Compare Revisions

Ignore whitespace Rev 1651 → Rev 1652

/trunk/extension/ezxajax_classattributes/doc/changelogs/2.0/CHANGELOG-2.0.0
2,3 → 2,5
 
- version for ez4 and php5
- removing strict warnings
 
- 20080415 fix bug add new classattribute in new content class failed
/trunk/extension/ezxajax_classattributes/xajax/classattributes.php
16,7 → 16,7
}
 
include_once( 'kernel/classes/ezcontentclass.php' );
$class = eZContentClass::fetch( $classID, true, EZ_CLASS_VERSION_STATUS_TEMPORARY );
$class = eZContentClass::fetch( $classID, true, eZContentClass::VERSION_STATUS_TEMPORARY );
 
if ( !is_object( $class ) or $class->attribute( 'id' ) == null )
{
42,7 → 42,7
}
}
 
$existingAttributes =& eZContentClass::fetchAttributes( $classID, false, EZ_CLASS_VERSION_STATUS_TEMPORARY );
$existingAttributes =& eZContentClass::fetchAttributes( $classID, false, eZContentClass::VERSION_STATUS_TEMPORARY );
 
$number = count( $existingAttributes ) + 1;
 
93,7 → 93,7
return $objResponse;
}
 
$attribute = eZContentClassAttribute::fetch( $attributeID, true, EZ_CLASS_VERSION_STATUS_TEMPORARY,
$attribute = eZContentClassAttribute::fetch( $attributeID, true, eZContentClass::VERSION_STATUS_TEMPORARY,
array( 'contentclass_id', 'version', 'placement' ) );
 
if ( !$attribute )
105,7 → 105,7
$classID = $attribute->attribute( 'contentclass_id' );
 
include_once( 'kernel/classes/ezcontentclass.php' );
$class = eZContentClass::fetch( $classID, true, EZ_CLASS_VERSION_STATUS_TEMPORARY );
$class = eZContentClass::fetch( $classID, true, eZContentClass::VERSION_STATUS_TEMPORARY );
 
if ( !is_object( $class ) or $class->attribute( 'id' ) == null )
{