mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Fix tests
This commit is contained in:
@@ -1728,14 +1728,12 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
||||
ON (g.rid_parent = r.record_id)
|
||||
WHERE rid_child = :record_id';
|
||||
|
||||
$params = array(
|
||||
':GV_site' => $this->app['conf']->get(['main', 'key'])
|
||||
, ':usr_id' => $this->app['authentication']->getUser()->get_id()
|
||||
, ':record_id' => $this->get_record_id()
|
||||
];
|
||||
|
||||
$stmt = $this->get_databox()->get_connection()->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
$stmt->execute([
|
||||
':site' => $this->app['conf']->get(['main', 'key']),
|
||||
':usr_id' => $this->app['authentication']->getUser()->getId(),
|
||||
':record_id' => $this->get_record_id(),
|
||||
]);
|
||||
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
$stmt->closeCursor();
|
||||
|
||||
|
@@ -54,7 +54,7 @@ class record_orderElement extends record_adapter
|
||||
if ($this->order_master_id) {
|
||||
$user = $this->app['manipulator.user']->getRepository()->find($this->order_master_id);
|
||||
|
||||
return $user->getDisplayName();
|
||||
return $user->getDisplayName($this->app['translator']);
|
||||
}
|
||||
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user