mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-18 04:34:59 +00:00
Compare commits
1 Commits
2.14.1
...
226-upgrad
Author | SHA1 | Date | |
---|---|---|---|
b19a1ba53b
|
5
.changes/unreleased/Fixed-20231127-210138.yaml
Normal file
5
.changes/unreleased/Fixed-20231127-210138.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: 'Export: fix list person with custom fields'
|
||||||
|
time: 2023-11-27T21:01:38.260730706+01:00
|
||||||
|
custom:
|
||||||
|
Issue: ""
|
@@ -1,5 +0,0 @@
|
|||||||
## v2.14.1 - 2023-11-29
|
|
||||||
### Fixed
|
|
||||||
* Export: fix list person with custom fields
|
|
||||||
* ([#100](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/100)) Add a paginator to budget elements (resource and charge types) in the admin
|
|
||||||
* Fix error in ListEvaluation when "handling agents" are alone
|
|
@@ -15,7 +15,7 @@
|
|||||||
"@symfony/webpack-encore": "^4.1.0",
|
"@symfony/webpack-encore": "^4.1.0",
|
||||||
"@tsconfig/node14": "^1.0.1",
|
"@tsconfig/node14": "^1.0.1",
|
||||||
"bindings": "^1.5.0",
|
"bindings": "^1.5.0",
|
||||||
"bootstrap": "^5.0.1",
|
"bootstrap": "^5.3.0",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
"fork-awesome": "^1.1.7",
|
"fork-awesome": "^1.1.7",
|
||||||
"jquery": "^3.6.0",
|
"jquery": "^3.6.0",
|
||||||
|
@@ -23,6 +23,6 @@ class ChargeKindController extends CRUDController
|
|||||||
/* @var QueryBuilder $query */
|
/* @var QueryBuilder $query */
|
||||||
$query->addOrderBy('e.ordering', 'ASC');
|
$query->addOrderBy('e.ordering', 'ASC');
|
||||||
|
|
||||||
return parent::orderQuery($action, $query, $request, $paginator);
|
return $query;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,6 @@ class ResourceKindController extends CRUDController
|
|||||||
/* @var QueryBuilder $query */
|
/* @var QueryBuilder $query */
|
||||||
$query->addOrderBy('e.ordering', 'ASC');
|
$query->addOrderBy('e.ordering', 'ASC');
|
||||||
|
|
||||||
return parent::orderQuery($action, $query, $request, $paginator);
|
return $query;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,11 +92,6 @@ class UserHelper
|
|||||||
}
|
}
|
||||||
$asStrings = [];
|
$asStrings = [];
|
||||||
|
|
||||||
if (array_key_exists('uid', $decoded) || is_numeric($decoded)) {
|
|
||||||
// this is a single value. We have to wrap it into an array
|
|
||||||
$decoded = [$decoded];
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($decoded as $userId) {
|
foreach ($decoded as $userId) {
|
||||||
if (is_array($userId)) {
|
if (is_array($userId)) {
|
||||||
$uid = $userId['uid'];
|
$uid = $userId['uid'];
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
// 3. Include remainder of required Bootstrap stylesheets
|
// 3. Include remainder of required Bootstrap stylesheets
|
||||||
@import "bootstrap/scss/variables";
|
@import "bootstrap/scss/variables";
|
||||||
|
@import "bootstrap/scss/variables-dark";
|
||||||
|
|
||||||
// 4. Include any default map overrides here
|
// 4. Include any default map overrides here
|
||||||
@import "custom/_maps";
|
@import "custom/_maps";
|
||||||
|
@@ -193,7 +193,6 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
|
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
|
||||||
{
|
{
|
||||||
$centers = array_map(static fn ($el) => $el['center'], $acl);
|
$centers = array_map(static fn ($el) => $el['center'], $acl);
|
||||||
$calcDate = $data['calc_date'] ?? new RollingDate(RollingDate::T_TODAY);
|
|
||||||
|
|
||||||
$qb = $this->entityManager->createQueryBuilder();
|
$qb = $this->entityManager->createQueryBuilder();
|
||||||
|
|
||||||
@@ -209,7 +208,7 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
->andWhere('acppart.startDate != acppart.endDate OR acppart.endDate IS NULL')
|
->andWhere('acppart.startDate != acppart.endDate OR acppart.endDate IS NULL')
|
||||||
// get participants at the given date
|
// get participants at the given date
|
||||||
->andWhere('acppart.startDate <= :calc_date AND (acppart.endDate > :calc_date OR acppart.endDate IS NULL)')
|
->andWhere('acppart.startDate <= :calc_date AND (acppart.endDate > :calc_date OR acppart.endDate IS NULL)')
|
||||||
->setParameter('calc_date', $this->rollingDateConverter->convert($calcDate));
|
->setParameter('calc_date', $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
if ($this->filterStatsByCenters) {
|
if ($this->filterStatsByCenters) {
|
||||||
$qb
|
$qb
|
||||||
@@ -225,7 +224,7 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
|
|
||||||
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$this->addSelectClauses($qb, $this->rollingDateConverter->convert($calcDate));
|
$this->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
@@ -279,7 +278,7 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
// referrers => at date XXXX
|
// referrers => at date XXXX
|
||||||
$qb
|
$qb
|
||||||
->addSelect('(SELECT JSON_BUILD_OBJECT(\'uid\', IDENTITY(history.user), \'d\', history.startDate) FROM '.UserHistory::class.' history '.
|
->addSelect('(SELECT JSON_BUILD_OBJECT(\'uid\', IDENTITY(history.user), \'d\', history.startDate) FROM '.UserHistory::class.' history '.
|
||||||
'WHERE history.accompanyingPeriod = acp AND history.startDate <= :calc_date AND (history.endDate IS NULL OR history.endDate > :calc_date)) AS acpw_referrers');
|
'WHERE history.accompanyingPeriod = acp AND history.startDate <= :calc_date AND (history.endDate IS NULL OR history.endDate > :calc_date)) AS referrers');
|
||||||
|
|
||||||
// persons
|
// persons
|
||||||
$qb
|
$qb
|
||||||
|
Reference in New Issue
Block a user