too many changes

This commit is contained in:
Dennis Eichhorn 2023-03-11 23:38:16 +01:00
parent 36be1cbc64
commit b146aed47b
6 changed files with 8 additions and 7 deletions

View File

@ -63,7 +63,8 @@
"auditor_audit_created_by": { "auditor_audit_created_by": {
"name": "auditor_audit_created_by", "name": "auditor_audit_created_by",
"type": "INT", "type": "INT",
"null": false, "null": true,
"default": null,
"foreignTable": "account", "foreignTable": "account",
"foreignKey": "account_id" "foreignKey": "account_id"
}, },

View File

@ -42,7 +42,7 @@ final class AuditMapper extends DataMapperFactory
'auditor_audit_ref' => ['name' => 'auditor_audit_ref', 'type' => 'string', 'internal' => 'ref'], 'auditor_audit_ref' => ['name' => 'auditor_audit_ref', 'type' => 'string', 'internal' => 'ref'],
'auditor_audit_type' => ['name' => 'auditor_audit_type', 'type' => 'int', 'internal' => 'type'], 'auditor_audit_type' => ['name' => 'auditor_audit_type', 'type' => 'int', 'internal' => 'type'],
'auditor_audit_trigger' => ['name' => 'auditor_audit_trigger', 'type' => 'string', 'internal' => 'trigger'], 'auditor_audit_trigger' => ['name' => 'auditor_audit_trigger', 'type' => 'string', 'internal' => 'trigger'],
'auditor_audit_content' => ['name' => 'auditor_audit_content', 'type' => 'string', 'internal' => 'content'], 'auditor_audit_content' => ['name' => 'auditor_audit_content', 'type' => 'compress', 'internal' => 'content'],
'auditor_audit_old' => ['name' => 'auditor_audit_old', 'type' => 'compress', 'internal' => 'old'], 'auditor_audit_old' => ['name' => 'auditor_audit_old', 'type' => 'compress', 'internal' => 'old'],
'auditor_audit_new' => ['name' => 'auditor_audit_new', 'type' => 'compress', 'internal' => 'new'], 'auditor_audit_new' => ['name' => 'auditor_audit_new', 'type' => 'compress', 'internal' => 'new'],
'auditor_audit_blockchain' => ['name' => 'auditor_audit_blockchain', 'type' => 'string', 'internal' => 'blockchain', 'readonly' => true], 'auditor_audit_blockchain' => ['name' => 'auditor_audit_blockchain', 'type' => 'string', 'internal' => 'blockchain', 'readonly' => true],
@ -83,7 +83,7 @@ final class AuditMapper extends DataMapperFactory
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const PRIMARYFIELD ='auditor_audit_id'; public const PRIMARYFIELD = 'auditor_audit_id';
/** /**
* Created at. * Created at.

View File

@ -80,7 +80,7 @@ echo $this->getData('nav')->render(); ?>
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/admin/account/settings?id=' . $audit->createdBy->getId()); ?>"><?= $this->printHtml( <td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/admin/account/settings?id=' . $audit->createdBy->getId()); ?>"><?= $this->printHtml(
$this->renderUserName('%3$s %2$s %1$s', [$audit->createdBy->name1, $audit->createdBy->name2, $audit->createdBy->name3, $audit->createdBy->login]) $this->renderUserName('%3$s %2$s %1$s', [$audit->createdBy->name1, $audit->createdBy->name2, $audit->createdBy->name3, $audit->createdBy->login])
); ?></a> ); ?></a>
<td><?= $this->printHtml($audit->ref); ?> <td><?= $this->printHtml((string) $audit->ref); ?>
<td><?= $audit->createdAt->format('Y-m-d H:i:s'); ?> <td><?= $audit->createdAt->format('Y-m-d H:i:s'); ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>

View File

@ -56,7 +56,7 @@ echo $this->getData('nav')->render();
<td><a href="<?= UriFactory::build('{/lang}/{/app}/admin/account/settings?{?}&id=' . $audit->createdBy->getId()); ?>"><?= $audit->createdBy->name1; ?> <?= $audit->createdBy->name2; ?></a> <td><a href="<?= UriFactory::build('{/lang}/{/app}/admin/account/settings?{?}&id=' . $audit->createdBy->getId()); ?>"><?= $audit->createdBy->name1; ?> <?= $audit->createdBy->name2; ?></a>
<tr> <tr>
<th><?= $this->getHtml('Ref'); ?> <th><?= $this->getHtml('Ref'); ?>
<td><?= $this->printHtml($audit->ref); ?> <td><?= $this->printHtml((string) $audit->ref); ?>
<tr> <tr>
<th><?= $this->getHtml('Date'); ?> <th><?= $this->getHtml('Date'); ?>
<td><?= $this->getDateTime($audit->createdAt, 'very_long'); ?> <td><?= $this->getDateTime($audit->createdAt, 'very_long'); ?>

View File

@ -1,6 +1,6 @@
{ {
"name": "karaka/module", "name": "karaka/module",
"description": "Module for Karaka.", "description": "Module for Jingga.",
"authors": [ "authors": [
{ {
"name": "Dennis Eichhorn", "name": "Dennis Eichhorn",

View File

@ -11,7 +11,7 @@
"phpOMS-db": "1.0.0" "phpOMS-db": "1.0.0"
}, },
"creator": { "creator": {
"name": "Karaka", "name": "Jingga",
"website": "jingga.app" "website": "jingga.app"
}, },
"description": "The administration module.", "description": "The administration module.",