Skip to content

Commit a3de67c

Browse files
authored
Merge pull request #2164 from griidc/release/6.82.0
Release/6.82.0
2 parents 388ec1e + fed3676 commit a3de67c

File tree

7 files changed

+203
-212
lines changed

7 files changed

+203
-212
lines changed

assets/static/js/dif.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ function formChanged()
10421042
{
10431043
return $.Deferred(function() {
10441044
var self = this;
1045-
if (formHash != $("#difForm").serialize() && typeof formHash !="undefined")
1045+
if (formHash != $("#difForm").serialize() && formHash)
10461046
{
10471047
$('<div><img src="' + imgWarning +'"><p>You will lose all changes. Do you wish to continue?</p></div>').dialog({
10481048
title: "Warning!",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"symfony/browser-kit": "7.4.*",
7676
"symfony/css-selector": "7.4.*",
7777
"symfony/debug-bundle": "7.4.*",
78-
"symfony/phpunit-bridge": "7.4.*",
78+
"symfony/phpunit-bridge": "8.0.*",
7979
"symfony/stopwatch": "7.4.*",
8080
"symfony/web-profiler-bundle": "7.4.*",
8181
"vimeo/psalm": "^6.0"

composer.lock

Lines changed: 27 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-plugin-vue": "^9.33.0",
1919
"file-loader": "^6.0.0",
2020
"react": "^18.3.1",
21-
"react-dom": "^18.3.1",
21+
"react-dom": "npm:^18.3.1",
2222
"regenerator-runtime": "^0.14.1",
2323
"sass-embedded": "1.64",
2424
"sass-loader": "^13.0.0",
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"@alpinejs/collapse": "^3.15.2",
44-
"@geoman-io/leaflet-geoman-free": "^2.18.3",
44+
"@geoman-io/leaflet-geoman-free": "^2.19.0",
4545
"@headlessui/react": "^1.7.19",
4646
"@heroicons/react": "^2.2.0",
4747
"@tailwindcss/typography": "^0.5.19",
@@ -59,7 +59,7 @@
5959
"exceljs": "^4.3.0",
6060
"file-saver": "^2.0.5",
6161
"jquery": "^3.5.1",
62-
"jquery-migrate": "^3.5.2",
62+
"jquery-migrate": "^3.6.0",
6363
"jquery-ui": "^1.13.2",
6464
"jquery.cookie": "^1.4.1",
6565
"leaflet": "^1.9.4",

src/Controller/UI/DIFController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ class DIFController extends AbstractController
2222
*
2323
* @param Request $request The Symfony request object.
2424
* @param FormFactoryInterface $formFactory The form factory.
25-
* @param string|null $id The id of the DIF to load.
2625
* @param FundingOrgFilter $fundingOrgFilter Utility to filter by funding organization.
2726
*
28-
*
2927
* @return Response A Response instance.
3028
*/
31-
#[Route(path: '/dif/{id}', name: 'pelagos_app_ui_dif_default')]
32-
public function index(Request $request, FormFactoryInterface $formFactory, FundingOrgFilter $fundingOrgFilter, $id = null)
29+
#[Route(path: '/dif', name: 'pelagos_app_ui_dif_default')]
30+
public function index(Request $request, FormFactoryInterface $formFactory, FundingOrgFilter $fundingOrgFilter)
3331
{
3432
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');
3533

src/Entity/Dataset.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,14 @@ public function getDatasetSubmissionHistory()
369369
return $this->datasetSubmissionHistory;
370370
}
371371

372+
/**
373+
* Whether this Dataset has any Dataset Submission history.
374+
*/
375+
public function hasDatasetSubmissionHistory(): bool
376+
{
377+
return !$this->datasetSubmissionHistory->isEmpty();
378+
}
379+
372380
/**
373381
* Update the title for this Dataset.
374382
*

0 commit comments

Comments
 (0)