diff --git a/src/Model/Table/EmpruntsTable.php b/src/Model/Table/EmpruntsTable.php index e3b2b33..77af290 100755 --- a/src/Model/Table/EmpruntsTable.php +++ b/src/Model/Table/EmpruntsTable.php @@ -112,10 +112,10 @@ class EmpruntsTable extends AppTable function ($context) { //debug($context); //if ($context['providers']['entity']['emprunt_interne'] !== null) { - //if ( !empty($context['data']) && !is_null($context['data']['emprunt_interne']) ) { + if ( !empty($context['data']) && !is_null($context['data']['emprunt_interne']) ) { return ! $context['data']['emprunt_interne']; //return $context['providers']['entity']['emprunt_interne']; - //} + } } ); -- libgit2 0.21.2