fix(perfexcrm module): align version to 3.0.1, unify entrypoint, and harden routes/views
- Bump DESK_MOLONI version to 3.0.1 across module - Normalize hooks to after_client_* and instantiate PerfexHooks safely - Fix OAuthController view path and API client class name - Add missing admin views for webhook config/logs; adjust view loading - Harden client portal routes and admin routes mapping - Make Dashboard/Logs/Queue tolerant to optional model methods - Align log details query with existing schema; avoid broken joins This makes the module operational in Perfex (admin + client), reduces 404s, and avoids fatal errors due to inconsistent tables/methods.
This commit is contained in:
28
modules/desk_moloni/views/admin/webhook_logs.php
Normal file
28
modules/desk_moloni/views/admin/webhook_logs.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
|
||||
<div class="container">
|
||||
<h3><?php echo _l('desk_moloni_webhook_logs'); ?></h3>
|
||||
<?php if (empty($logs)) { ?>
|
||||
<p>No webhook logs found.</p>
|
||||
<?php } else { ?>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Timestamp</th>
|
||||
<th>Event</th>
|
||||
<th>Status</th>
|
||||
<th>Error</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($logs as $log) { ?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($log['timestamp'] ?? ''); ?></td>
|
||||
<td><?php echo htmlspecialchars($log['endpoint'] ?? ''); ?></td>
|
||||
<td><?php echo empty($log['error']) ? 'SUCCESS' : 'ERROR'; ?></td>
|
||||
<td><?php echo htmlspecialchars($log['error'] ?? ''); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user