Skip to content
Snippets Groups Projects
Commit 9fba94d5 authored by Laurent's avatar Laurent
Browse files

dev#78266 : Fixing all the issues with tests

parent 2b009b02
Branches
Tags
3 merge requests!3297WIP: Master,!3025Dev#72866 65 poker contractuel bdp64 resa multi sigb,!3010Dev#72866 65 poker contractuel bdp64 resa multi sigb
Pipeline #6334 failed with stage
in 29 minutes and 20 seconds
......@@ -120,8 +120,8 @@ class Class_TableDescription {
public function addColumn($label, $description) {
if (is_callable($description))
$description = ['callback' => $description];
// if (is_callable($description))
// $description = ['callback' => $description];
if ($description instanceof Closure)
$description = ['callback' => $description];
......
......@@ -25,16 +25,16 @@ class Class_TableDescription_PNBItems extends Class_TableDescription {
public function init() {
$this
->addColumn($this->_('Titre'), 'title')
->addColumn($this->_('Nombre de prêts'), [$this, 'getQuantityOnTotal'])
->addColumn($this->_('Nombre de prêts simultanés'), [$this, 'getLiveQuantity'])
->addColumn($this->_('Durée de prêt en jours'), [$this, 'getDuration'])
->addColumn($this->_('Nombre de jours restant sur la licence'), [$this, 'getLicenseExpiration'])
->addColumn($this->_('Date de commande'), [$this, 'orderDate'])
->addColumn($this->_('Nombre de prêts'), 'getQuantityOnTotal')
->addColumn($this->_('Nombre de prêts simultanés'), 'getLiveQuantity')
->addColumn($this->_('Durée de prêt en jours'), 'getDuration')
->addColumn($this->_('Nombre de jours restant sur la licence'), 'getLicenseExpiration')
->addColumn($this->_('Date de commande'), 'orderDate')
->addRowAction(['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'edit_album',
'id' => '%s'],
'id' => [$this, 'getAlbumId'],
'id' => 'getAlbumId',
'anchorOptions' => ['data-popup' => 'true'],
'label' => $this->_('Voir l\'album'),
'icon' => 'view']);
......
......@@ -26,13 +26,13 @@ class Class_TableDescription_PNBItemsExport extends Class_TableDescription_PNBIt
public function init() {
$this
->addColumn($this->_('Titre'), 'title')
->addColumn($this->_('Prêts / Droits'), [$this, 'getQuantityOnTotal'])
->addColumn($this->_('Nombre de prêts'), [$this, 'loanQuantityOrLocalLoanCount'])
->addColumn($this->_('Prêts simultanés / Droits'), [$this, 'getLiveQuantity'])
->addColumn($this->_('Prêts simultanés'), [$this, 'loanCountOrLocalOngoing'])
->addColumn($this->_('Durée de prêt en jours'), [$this, 'getDuration'])
->addColumn($this->_('Nombre de jours restant sur la licence'), [$this, 'getLicenseExpiration'])
->addColumn($this->_('Date de commande'), [$this, 'orderDate'])
->addColumn($this->_('Prêts / Droits'), 'getQuantityOnTotal')
->addColumn($this->_('Nombre de prêts'), 'loanQuantityOrLocalLoanCount')
->addColumn($this->_('Prêts simultanés / Droits'), 'getLiveQuantity')
->addColumn($this->_('Prêts simultanés'), 'loanCountOrLocalOngoing')
->addColumn($this->_('Durée de prêt en jours'), 'getDuration')
->addColumn($this->_('Nombre de jours restant sur la licence'), 'getLicenseExpiration')
->addColumn($this->_('Date de commande'), 'orderDate')
->addColumn($this->_('Auteur'), 'main_author')
->addColumn($this->_('Éditeur'), 'first_editor')
->addColumn($this->_('Collection'), 'first_collection')
......
......@@ -25,9 +25,9 @@ class Class_TableDescription_PNBLoans extends Class_TableDescription {
public function init() {
$this
->addColumn($this->_('Date'), [$this, 'loanDate'])
->addColumn($this->_('Date'), 'loanDate')
->addColumn($this->_('Titre'), 'title')
->addColumn($this->_('Date de commande'), [$this, 'orderDate'])
->addColumn($this->_('Date de commande'), 'orderDate')
->addColumn($this->_('Auteur'), 'main_author')
->addColumn($this->_('Éditeur'), 'first_editor')
->addColumn($this->_('Collection'), 'first_collection')
......
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