Skip to content

[fix] Recent Commands row uses "created" timestamp for the "Modified" field #1263

@iamavichal-geek

Description

@iamavichal-geek

Issue

In commands.js, the getElement function builds the HTML for a new
command row inserted into "Recent Commands" after a command is submitted.
The Modified field incorrectly uses response.created instead of
response.modified:

openwisp_controller/connection/static/connection/js/commands.js ~line 506-510

<div class="form-row field-modified">
    <div><label>Modified:</label><div class="readonly">${getFormattedDateTimeString(
      response.created,   // bug: should be response.modified
    )}</div></div>
</div>

Screenshots :

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions