mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix #134 : browsing a story
This commit is contained in:
@@ -151,7 +151,9 @@ class basketCollection
|
||||
$appbox = appbox::get_instance();
|
||||
$conn = $appbox->get_connection();
|
||||
$session = $appbox->get_session();
|
||||
$sql = 'SELECT ssel_id FROM sselnew WHERE usr_id = :usr_id';
|
||||
$sql = 'SELECT n.ssel_id FROM sselnew n, ssel s
|
||||
WHERE s.ssel_id = n.ssel_id AND n.usr_id = :usr_id
|
||||
AND n.usr_id = s.usr_id';
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->execute(array(':usr_id' => $session->get_usr_id()));
|
||||
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
@@ -112,8 +112,7 @@ class record_preview extends record_adapter
|
||||
break;
|
||||
case "REG":
|
||||
$contId = explode('_', $contId);
|
||||
$base_id = $contId[0];
|
||||
$sbas_id = phrasea::sbasFromBas($base_id);
|
||||
$sbas_id = $contId[0];
|
||||
$record_id = $contId[1];
|
||||
|
||||
$this->container = new record_adapter($sbas_id, $record_id);
|
||||
|
Reference in New Issue
Block a user