Merge branch '3.8'

This commit is contained in:
Romain Neutron
2013-09-18 12:09:20 +02:00
26 changed files with 224 additions and 115 deletions

View File

@@ -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;