Skip to content
Extraits de code Groupes Projets
Valider 2020befe rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

added property report_last_updated_message instead of overwriting a metadata property

parent c1477788
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -62,6 +62,7 @@ class Visualization extends ViewDataTable
$this->overrideSomeConfigPropertiesIfNeeded();
try {
$this->beforeLoadDataTable();
$this->loadDataTableFromAPI();
......@@ -171,7 +172,7 @@ class Visualization extends ViewDataTable
$this->config->metadata = $this->dataTable->getAllTableMetadata();
if (isset($this->config->metadata[DataTable::ARCHIVED_DATE_METADATA_NAME])) {
$this->config->metadata[DataTable::ARCHIVED_DATE_METADATA_NAME] = $this->makePrettyArchivedOnText();
$this->config->report_last_updated_message = $this->makePrettyArchivedOnText();
}
}
}
......
......@@ -454,6 +454,7 @@ class Config
*/
public $show_non_core_visualizations = true;
public $report_last_updated_message = false;
public $metadata = array();
public $report_id = '';
......
......@@ -11,7 +11,7 @@
data-params="{% if clientSideParameters is empty %}{}{% else %}{{ clientSideParameters|json_encode }}{% endif %}">
<div class="reportDocumentation">
{% if properties.documentation|default is not empty %}<p>{{ properties.documentation|raw }}</p>{% endif %}
{% if properties.metadata.archived_date is defined %}<span class='helpDate'>{{ properties.metadata.archived_date }}</span>{% endif %}
{% if properties.report_last_updated_message is defined %}<span class='helpDate'>{{ properties.report_last_updated_message }}</span>{% endif %}
</div>
<div class="dataTableWrapper">
{% if error is defined %}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter