diff --git a/.idea/php-test-framework.xml b/.idea/php-test-framework.xml deleted file mode 100644 index d766127..0000000 --- a/.idea/php-test-framework.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/nur_src/v/bs3/vc/CTable.php b/nur_src/v/bs3/vc/CTable.php index dc8ea37..226c2f9 100644 --- a/nur_src/v/bs3/vc/CTable.php +++ b/nur_src/v/bs3/vc/CTable.php @@ -375,12 +375,11 @@ class CTable extends ComponentPrintable implements IParametrable { if (!func::_call($filterCtx, [$row, $this->rowKey, $this->rowIndex])) return null; } if ($mapCtx !== null) { + $row = func::_call($mapCtx, [$row, $this->rowKey, $this->rowIndex]); + } elseif ($map !== null) { # si la valeur est séquentielle, c'est une clé dans $row # si la valeur est associative et que c'est une fonction, elle est appelée # avec la valeur - $map = func::_call($mapCtx, [$row, $this->rowKey, $this->rowIndex]); - } - if ($map !== null) { $row = A::with($row); $index = 0; $mapped = [];