Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyatka committed Jan 5, 2021
1 parent 6cbd306 commit d625bed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PandaBase/Record/InstanceRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ public function getChangedKeys() {
return $this->changed_keys;
}

public function resetChangedKeys() {
$this->changed_keys = [];
}

/**
* @param Table $tableDescriptor
* @return RecordHandler
Expand Down
2 changes: 2 additions & 0 deletions src/PandaBase/Record/SimpleRecordHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public function edit()

//Lekérdezés futtatása
$prepared_statement->execute();

$this->databaseRecord->resetChangedKeys();
return true;
}
else {
Expand Down

0 comments on commit d625bed

Please sign in to comment.