From f7b40ee973e237dda1767ccf61a07d8ded335b19 Mon Sep 17 00:00:00 2001 From: pbarroca <pbarroca@afi-sa.fr> Date: Thu, 5 Oct 2017 11:46:57 +0200 Subject: [PATCH] dev #65265: fix RT --- FEATURES/65265 | 12 ++++---- VERSIONS_WIP/65265 | 2 +- .../Plugin/Versionning/Abstract.php | 29 ++++--------------- 3 files changed, 13 insertions(+), 30 deletions(-) diff --git a/FEATURES/65265 b/FEATURES/65265 index 59abe2a1cb3..f8a1fc229c9 100644 --- a/FEATURES/65265 +++ b/FEATURES/65265 @@ -1,10 +1,10 @@ '65265' => - ['Label' => $this->_('Versionning des articles en Front'), - 'Desc' => '', + ['Label' => $this->_('Historique des modifications des articles en Front'), + 'Desc' => $this->_('Vous pouvez accéder à l\'historique des modifications d\'un article directement à partir des boites article ou calendrier'), 'Image' => '', 'Video' => '', - 'Category' => '', - 'Right' => '', - 'Wiki' => '', + 'Category' => $this->_('Administration'), + 'Right' => function($feature_description, $user) {return $user->canAccessBackend();}, + 'Wiki' => 'http://wiki.bokeh-library-portal.org/index.php?title=Articles_-_Cr%C3%A9er,_r%C3%A9diger_et_ordonner#Historique_des_versions', 'Test' => '', - 'Date' => '2017-10-02'] \ No newline at end of file + 'Date' => '2017-10-02'], \ No newline at end of file diff --git a/VERSIONS_WIP/65265 b/VERSIONS_WIP/65265 index 08814730204..65ae088477e 100644 --- a/VERSIONS_WIP/65265 +++ b/VERSIONS_WIP/65265 @@ -1 +1 @@ - - ticket #65265 : Versionning des articles en Front \ No newline at end of file + - ticket #65265 : Administration : Vous pouvez accéder à l'historique des modifications d'un article directement à partir des boites article ou calendrier en front \ No newline at end of file diff --git a/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php b/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php index 459fa588009..6ad1408c7f7 100644 --- a/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php +++ b/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php @@ -126,32 +126,15 @@ abstract class ZendAfi_Controller_Plugin_Versionning_Abstract } - protected function _loadModel() { - return; - } - - - protected function _modelLabel($model) { - return ''; - } - - - protected function _versionsFor($model) { - return null; - } - - - protected function _forwardToEdit($model) { + abstract protected function _loadModel(); - } + abstract protected function _modelLabel($model); + abstract protected function _versionsFor($model); - protected function _versionUrl($model) { - return ''; - } + abstract protected function _forwardToEdit($model); + abstract protected function _versionUrl($model); - protected function _editUrl($model) { - return ''; - } + abstract protected function _editUrl($model); } -- GitLab