Fix that updating INI repositories is impossible

This commit is contained in:
Eric Lippmann 2017-09-28 14:15:15 +02:00
parent 852c571bac
commit d5de7e9868

View File

@ -302,7 +302,9 @@ abstract class IniRepository extends Repository implements Extensible, Updatable
$newConfig = clone $config;
foreach ($newData as $column => $value) {
if ($column === $keyColumn) {
$newSection = $value;
if ($value !== $config->get($keyColumn)) {
$newSection = $value;
}
} else {
$newConfig->$column = $value;
}