*/
- public $periode = '-1 month';
+ public $periode = '-5 days';
/**
* @desc le sbasid de la base ou on effectue le report
@@ -168,7 +168,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
{
return $this->dashboard;
}
-
+
/**
* @desc construct the legend for charts
* if dmax === false dmax = now();
@@ -276,7 +276,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
$listeColl[] = (int) $value['coll_id'];
}
- $this->authorizedCollection[] = array(
+ $this->authorizedCollection[(int) $sbas] = array(
'sbas_id' => (int) $sbas,
'coll' => implode(',', $listeColl),
'name' => phrasea::sbas_labels($sbas, $this->app)
diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php
index 4768e1ec82..959ddd7d66 100644
--- a/lib/classes/record/adapter.php
+++ b/lib/classes/record/adapter.php
@@ -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;
diff --git a/templates/web/admin/collection/suggested_value.html.twig b/templates/web/admin/collection/suggested_value.html.twig
index cf98cd37c9..fabcad9964 100644
--- a/templates/web/admin/collection/suggested_value.html.twig
+++ b/templates/web/admin/collection/suggested_value.html.twig
@@ -117,7 +117,7 @@
-
+
@@ -135,7 +135,7 @@