mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge branch '3.8'
This commit is contained in:
@@ -1163,11 +1163,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
||||
*/
|
||||
public function reindex()
|
||||
{
|
||||
$connbas = connection::getPDOConnection($this->app, $this->get_sbas_id());
|
||||
$sql = 'UPDATE record SET status=(status & ~7 | 4)
|
||||
WHERE record_id= :record_id';
|
||||
$stmt = $connbas->prepare($sql);
|
||||
$stmt->execute(array(':record_id' => $this->record_id));
|
||||
$this->app['phraseanet.SE']->updateRecord($this);
|
||||
$this->delete_data_from_cache(self::CACHE_STATUS);
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user