hard coded content class

You need to be logged in to post messages in the forums. New users may register here.

Georg Franz

Member since:
09 January 2008

Posts: 10

Monday 12 May 2008 5:07:01 am

Hi,

extension\ezapprove2\eventtypes\event\ezapprove2\ezapprove2type.php

Line 308:
// #HACK#
if ( $object->attribute( 'contentclass_id' ) == 17 ) // 17 == newsletter_issue
{
foreach( $object->relatedContentObjectList( $approveStatus->attribute( 'active_version' ), false, false ) as $relatedObject )
{
$relatedObject->setAttribute( 'flags', $relatedObject->attribute( 'flags' ) ^ EZ_CONTENT_OBJECT_FLAG_LOCK_EDIT ^ EZ_CONTENT_OBJECT_FLAG_LOCK_REMOVE );
$relatedObject->sync();
}
}

-> that should not be there

Best wishes,
Georg.

Best wishes,
Georg.

--
Do you like cows? - http://www.kuh.at

Up

You need to be logged in to post messages in the forums. New users may register here.