Resolve "Entity logging service / bundle" #1208

Open
korina.cordero wants to merge 35 commits from 330-entity-logging-service-bundle into master
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 882a36f705 - Show all commits

View file

@ -507,8 +507,8 @@ class UserController extends Controller
$database = $client->selectDB('logging_db');
// query will return a resultset object
// TODO: filter query using user id
$result = $database->query('SELECT * FROM entity_log');
$query_string = 'SELECT * FROM entity_log WHERE "user" = ' . $id;
$result = $database->query($query_string);
// get the points from the resultset, which is an array
$points = $result->getPoints();

View file

@ -58,7 +58,9 @@
<span class="m-form__help">Unique alias for this user</span>
</div>
<div class="col-lg-6">
<a href="{{ url('user_view_logs_form', {'id':obj.getID()}) }}" class="btn btn-success">View Audit Logs</a>
{% if mode == 'update' %}
<a href="{{ url('user_view_logs_form', {'id':obj.getID()}) }}" class="btn btn-success">View Audit Logs</a>
{% endif %}
</div>
</div>
<div class="form-group m-form__group row">