Skip to content

Commit

Permalink
#4 Bugfix: improved implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaechler committed Mar 28, 2014
1 parent 31aae09 commit 59dacd3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/Libadmin/src/Libadmin/Table/InstitutionTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ private function relationsChanged(array $oldRelations, array $newRelations) {

//Check the relations for equality
foreach ( $oldRelations as $oldRelation ) {
$newRelation = $filteredNewRelations[$oldRelation->getPrimaryKey()];

if ( !$oldRelation->equals($newRelation) ) return true;
if ( !array_key_exists($oldRelation->getPrimaryKey(), $filteredNewRelations) ) return true;
if ( !$oldRelation->equals($filteredNewRelations[$oldRelation->getPrimaryKey()]) ) return true;
}

return false;
Expand Down

0 comments on commit 59dacd3

Please sign in to comment.