kernel/content/ezcontentoperationcollection.php
static public function resetNodeassignmentOpcodes( $objectID, $versionNum )
    {
        $object = eZContentObject::fetch( $objectID );
        $version = $object->version( $versionNum );
        $nodeAssignments = $version->attribute( 'node_assignments' );
        foreach ( $nodeAssignments as $nodeAssignment )
        {
            if ( ( $nodeAssignment->attribute( 'op_code' ) & 1 ) == eZNodeAssignment::OP_CODE_EXECUTE )
            {
                $nodeAssignment->setAttribute( 'op_code', ( $nodeAssignment->attribute( 'op_code' ) & ~1 ) );
                $nodeAssignment->store();
            }
        }
    }
static public function resetNodeassignmentOpcodes( $objectID, $versionNum )
    {
        $object = eZContentObject::fetch( $objectID );
        $version = $object->version( $versionNum );
        $nodeAssignments = $version->attribute( 'node_assignments' );
        foreach ( $nodeAssignments as $nodeAssignment )
        {
            if ( ( $nodeAssignment->attribute( 'op_code' ) & 1 ) == eZNodeAssignment::OP_CODE_EXECUTE )
            {
                $nodeAssignment->setAttribute( 'op_code', ( $nodeAssignment->attribute( 'op_code' ) & ~1 ) );
                $nodeAssignment->store();
            }
        }
    }
static public function resetNodeassignmentOpcodes ( $ objectID , $ versionNum ) { $ object = eZContentObject :: fetch ( $ objectID ) ; $ version = $ object -> version ( $ versionNum ) ; $ nodeAssignments = $ version -> attribute ( 'node_assignments' ) ; foreach ( $ nodeAssignments as $ nodeAssignment ) { if ( ( $ nodeAssignment -> attribute ( 'op_code' ) & 1 ) == eZNodeAssignment :: OP_CODE_EXECUTE ) { $ nodeAssignment -> setAttribute ( 'op_code' , ( $ nodeAssignment -> attribute ( 'op_code' ) & ~ 1 ) ) ; $ nodeAssignment -> store ( ) ; } } }
New function which resets the op_code field when the object is published.
New function which resets the op_code field when the object is published .