Skip to content

Commit

Permalink
Replace vv_entity_id with existing vv_obj reference. (CFM-193)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Jul 13, 2022
1 parent 80ab290 commit ab52a35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/src/Controller/StandardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ public function edit(string $id) {
$this->set('vv_title', __d('operation', 'edit.ai', __d('controller', $modelsName, [1])));
}
}
$this->set('vv_entity_id', __d('information', 'entity.id', $id));

// Let the view render
$this->render('/Standard/add-edit-view');
Expand Down Expand Up @@ -660,7 +659,6 @@ public function view($id = null) {
$this->set('vv_title', __d('operation', 'view.ai', __d('controller', $modelsName, [1])));
}
}
$this->set('vv_entity_id', __d('information', 'entity.id', $id));

// Let the view render
$this->render('/Standard/add-edit-view');
Expand Down
2 changes: 1 addition & 1 deletion app/templates/Standard/add-edit-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}
}

print '<li id="cm-entity-id">' . $vv_entity_id . '</li>';
print '<li id="cm-entity-id">' . __d('information', 'entity.id', $vv_obj->id) . '</li>';

if($vv_action == 'add' || $vv_action == 'edit') {
// We don't want/need to output these for view actions
Expand Down

0 comments on commit ab52a35

Please sign in to comment.