Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
        $sql = "DELETE FROM system WHERE DATE(last_seen) < DATE_SUB(curdate(), INTERVAL " . intval($days) . " day)";

Fix for deleting items from list pages.

There is an issue in the templates for collection pages. The data-id attribute is assigned to the child element of the delete_link class assigned element. Consequently when the delete link is clicked, javascript doesn't have a valid item id for the request. The fix is to correctly place the data-id assignment on the correct element. The fix can be found in the attached file. Replace the files:

Windows - in c:\xampplite\open-audit\code_igniter\application\views\theme-bootstrap

Linux - /usr/local/open-audit/code_igniter/application/views/theme-bootstrap/

The files are the v_X_collection.php (where X is the type of collection - credentials, networks, orgs, etc) and the template file (v_template.php).

The files are below:

v_template.phpv_connections_collection.phpv_credentials_collection.phpv_fields_collection.phpv_locations_collection.phpv_networks_collection.phpv_orgs_collection.phpv_scripts_collection.php.