Merge pull request #52 from ss-gxp/fix-env-branches-update

Fixed updating branches for exist environment
This commit is contained in:
Dmitry Khomutov 2017-04-05 21:05:49 +07:00 committed by GitHub
commit 37abf496d2

View file

@ -860,6 +860,7 @@ class Project extends Model
// already exist
unset($environments_names[$key]);
$environment->setBranches(!empty($environments_config[$environment->getName()]) ? $environments_config[$environment->getName()] : []);
$store->save($environment);
} else {
// remove
$store->delete($environment);