Skip to content

Commit

Permalink
#367 - AdminUI edit properties treats "new" id value as zero or empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Oct 5, 2021
1 parent b42b465 commit c155d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/scripts/php/libs/ModuleHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function getGitHubRepositoryName() {
public function edit($template, $id) {
$model = parent::getEditModel();

$isEdit = $id != "new";
$isEdit = !empty($id);

if ($model->isLoad()) {
if ($isEdit) {
Expand Down

0 comments on commit c155d60

Please sign in to comment.