Skip to content

Commit

Permalink
- Fixed bug #6772: Function contentClassAttributeName of
Browse files Browse the repository at this point in the history
  contentObjectAttribute always returns null
- Fixed: Several wrong calls to eZDebug::accumulatorStart

git-svn-id: file:///home/patrick.allaert/svn-git/ezp-repo/ezpublish/stable/3.5@12244 a01eee8c-daba-0310-acae-fa49f3023285
  • Loading branch information
Hans Melis committed Jun 16, 2005
1 parent 47fe267 commit 0bed5c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions doc/changelogs/3.5/CHANGELOG-3.5.3-to-3.5.4
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ Changes from 3.5.3 to 3.5.4
validated properly.
- Fixed bug #6765: Fields are cleared on relating an object with related
object attribute.
- Fixed bug #6772: Function contentClassAttributeName of
contentObjectAttribute always returns null
- Fixed: Several wrong calls to eZDebug::accumulatorStart

*Translations:
10 changes: 5 additions & 5 deletions kernel/classes/ezcontentobjectattribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function &contentClassAttributeIsRequired()

$classAttribute =& eZContentClassAttribute::fetch( $this->ContentClassAttributeID );
$this->ContentClassAttributeIsRequired = $classAttribute->attribute( 'is_required' );
eZDebug::accumulatorStart( 'class_a_is_req' );
eZDebug::accumulatorStop( 'class_a_is_req' );
}

return $this->ContentClassAttributeIsRequired;
Expand All @@ -441,7 +441,7 @@ function &contentClassAttributeIsInformationCollector()

$classAttribute =& eZContentClassAttribute::fetch( $this->ContentClassAttributeID );
$this->ContentClassAttributeIsInformationCollector = $classAttribute->attribute( 'is_information_collector' );
eZDebug::accumulatorStart( 'class_a_is_ic' );
eZDebug::accumulatorStop( 'class_a_is_ic' );
}

return $this->ContentClassAttributeIsInformationCollector;
Expand All @@ -459,8 +459,8 @@ function &contentClassAttributeName()
eZDebug::accumulatorStart( 'class_a_name', 'Sytem overhead', 'Fetch class attribute name' );

$classAttribute =& eZContentClassAttribute::fetch( $this->ContentClassAttributeID );
$this->ContentClassAttributeCanTranslate = $classAttribute->attribute( 'can_translate' );
eZDebug::accumulatorStart( 'class_a_name' );
$this->ContentClassAttributeName = $classAttribute->attribute( 'name' );
eZDebug::accumulatorStop( 'class_a_name' );
}

return $this->ContentClassAttributeName;
Expand All @@ -479,7 +479,7 @@ function &contentClassAttributeCanTranslate()

$classAttribute =& eZContentClassAttribute::fetch( $this->ContentClassAttributeID );
$this->ContentClassAttributeCanTranslate = $classAttribute->attribute( 'can_translate' );
eZDebug::accumulatorStart( 'class_a_can_translate' );
eZDebug::accumulatorStop( 'class_a_can_translate' );
}

return $this->ContentClassAttributeCanTranslate;
Expand Down

0 comments on commit 0bed5c9

Please sign in to comment.