bug fixes and template adjustments

This commit is contained in:
Dennis Eichhorn 2021-07-31 17:20:48 +02:00
parent f79360fef0
commit 98e3ab7cdf
3 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ final class EditorDocMapper extends DataMapperAbstract
public static function getByVirtualPath(string $virtualPath = '/', int $account = 0) : array
{
$depth = 3;
$query = self::getQuery();
$query = self::getQuery(depth: $depth);
$query->where(self::$table . '_d' . $depth . '.editor_doc_virtual', '=', $virtualPath);
$query->where(self::$table . '_d' . $depth . '.editor_doc_created_by', '=', $account);

View File

@ -133,7 +133,7 @@ echo $this->getData('nav')->render(); ?>
</label>
<td><a href="<?= $url; ?>"><i class="fa fa-folder-open-o"></i></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->createdBy->name1); ?></a>
<td><a class="content" href="<?= UriFactory::build('{/prefix}profile/single?{?}&for=' . $value->createdBy->getId()); ?>"><?= $this->printHtml($value->createdBy->name1); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->createdAt->format('Y-m-d')); ?></a>
<?php endforeach; ?>
<?php foreach ($docs as $key => $value) : ++$count;
@ -145,7 +145,7 @@ echo $this->getData('nav')->render(); ?>
</label>
<td><i class="fa fa-file-o"></i>
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->title); ?></a>
<td data-label="<?= $this->getHtml('Creator'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->createdBy->name1); ?></a>
<td data-label="<?= $this->getHtml('Creator'); ?>"><a class="content" href="<?= UriFactory::build('{/prefix}profile/single?{?}&for=' . $value->createdBy->getId()); ?>"><?= $this->printHtml($value->createdBy->name1); ?></a>
<td data-label="<?= $this->getHtml('Created'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->createdAt->format('Y-m-d')); ?></a>
<?php endforeach; ?>
<?php if ($count === 0) : ?>

View File

@ -10,7 +10,7 @@
"require-dev": {
"phpunit/phpunit": ">=9.4",
"friendsofphp/php-cs-fixer": ">=3.0",
"squizlabs/php_codesniffer": ">=3.5",
"squizlabs/php_codesniffer": ">=3.6",
"phpmd/phpmd": ">=2.9",
"phpstan/phpstan": ">=0.12.58",
"phan/phan": ">=3.2.6"