Skip to content

Commit

Permalink
Auto stash before merge of "feature/DIMOC-111/missingfields" and "ori…
Browse files Browse the repository at this point in the history
…gin/feature/DIMOC-244/source-parameter"
  • Loading branch information
rjzondervan committed Aug 16, 2024
1 parent 23f7cb8 commit 43761a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/Db/ListingMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function findAll(?int $limit = null, ?int $offset = null, ?array $filters
'o.pki AS organisation_pki'
)
->from('listings', 'l')
->leftJoin('l', 'organizations', 'o', 'l.organisation = o.id')
->leftJoin('l', 'organizations', 'o', 'l.organisation = o.id')
->setMaxResults($limit)
->setFirstResult($offset);

Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Organisation.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function hydrate(array $object): self

try {
$this->$method($value);
} catch (\Exception $exception) {
} catch (\Exception $exception) {}
}

return $this;
Expand Down
8 changes: 2 additions & 6 deletions lib/Migration/Version6Date20240815105059.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt

$table->addColumn(
name: 'metadata',
typeName: Types::JSON,
options: [
'notNull' => false,
'default' => 'a:0:{}'
]);
typeName: Types::JSON)->setNotnull(notnull: false)->setDefault(default:'{}');

$output->info("Added 'metadata' column as JSON type with a default value of an empty array.");

return $schema;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/Service/DirectoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ public function listCatalog (array $catalog): array
$listing = $this->getDirectoryEntry(catalogId: $catalogId);

$listing['title'] = $catalog['title'];
$listing['description'] = $catalog['description'];
$listing['summary'] = $catalog['summary'];
$listing['organisation'] = $catalog['organisation'];
$listing['metadata'] = $catalog['metadata'];

Expand Down

0 comments on commit 43761a4

Please sign in to comment.