Skip to content

Commit

Permalink
EZP-29723: Content object attributes not set properly (ezsystems#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkamps authored Jan 16, 2019
1 parent 94b7b6c commit dd0c940
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions kernel/classes/datatypes/ezimage/ezimagetype.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ function deleteStoredObjectAttribute( $contentObjectAttribute, $version = null )
$imageHandler->setAttribute( 'alternative_text', false );
$imageHandler->removeAliases();
$imageHandler->store( $contentObjectAttribute );
$contentObjectAttribute->setContent( null );
}
}

Expand Down
4 changes: 0 additions & 4 deletions kernel/content/attribute_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,6 @@
$db->begin();
$object->setName( $class->contentObjectName( $object, $version->attribute( 'version' ), $EditLanguage ), $version->attribute( 'version' ), $EditLanguage );
$db->commit();

// While being fetched, attributes might have been modified.
// The list needs to be refreshed so it is accurately displayed.
$contentObjectAttributes = $version->contentObjectAttributes( $EditLanguage );
}
elseif ( $storingAllowed )
{
Expand Down

0 comments on commit dd0c940

Please sign in to comment.