Skip to content
Snippets Groups Projects
Commit 27cc0944 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

migrate customfieldsReport controller to manager plugin

parent bcfd8f36
Branches
Tags
5 merge requests!2080Sandbox detach zf from storm,!2061Master,!1989Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections,!1968full plugin mod for multiselection,!1959Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections
Pipeline #136 failed with stage
in 8 minutes and 43 seconds
......@@ -21,6 +21,12 @@
class Admin_CustomFieldsReportController extends ZendAfi_Controller_Action {
public function getPlugins() {
return ['ZendAfi_Controller_Plugin_Manager_CustomFieldsReport'];
}
public function getRessourceDefinitions() {
return [
'model' => ['class' => 'Class_Report', 'name' => 'report', 'order' => 'label'],
......@@ -36,12 +42,6 @@ class Admin_CustomFieldsReportController extends ZendAfi_Controller_Action {
}
public function addAction() {
parent::addAction();
$this->render('edit');
}
public function generateAction() {
if (!$report = Class_Report::find($this->_getParam('id', 0)))
$this->_redirect('/admin/custom-fields-report');
......@@ -53,5 +53,4 @@ class Admin_CustomFieldsReportController extends ZendAfi_Controller_Action {
$this->_forward('index');
}
}
?>
\ No newline at end of file
}
\ No newline at end of file
<?php
/**
* Copyright (c) 2012-2017, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_Controller_Plugin_Manager_CustomFieldsReport extends ZendAfi_Controller_Plugin_Manager_Manager {
public function addAction() {
parent::addAction();
$this->_controller->render('edit');
}
}
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment