Skip to content

Commit

Permalink
#367 - Fix language creation after changes to admin:new/edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Oct 5, 2021
1 parent 2ca495f commit 8bdcaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/scripts/php/libs/Language.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function form($template, $id = 0) {
$model = parent::getEditModel();

if (!$model->hasMetadataKey("isUpdate")) {
$isUpdate = !empty($id);
$isUpdate = !empty($id) && $id != "new";
$model->metadata("isUpdate", $isUpdate);
} else {
$isUpdate = $model->metadata("isUpdate");
Expand Down

0 comments on commit 8bdcaaa

Please sign in to comment.