Skip to content

Commit

Permalink
Merge pull request #10219 from kaitlinnewson/10132-main
Browse files Browse the repository at this point in the history
#10132 add checkbox for validation in Onix export plugin
  • Loading branch information
bozana authored Jul 17, 2024
2 parents de17920 + 4b76d98 commit 468c430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/plugins/ImportExportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function getBounceTab($request, $title, $bounceUrl, $bounceParameterArray
}

/**
* Download file given it's name
* Download file given its name
*/
public function downloadExportedFile(string $exportedFileContentNamePart, string $exportedFileDatePart, PKPImportExportDeployment $deployment)
{
Expand All @@ -449,7 +449,7 @@ public function downloadExportedFile(string $exportedFileContentNamePart, string
}

/**
* Create file given it's name and content
* Create file given its name and content
*
* @param ?DateTime $dateFilenamePart
*
Expand Down
4 changes: 4 additions & 0 deletions classes/plugins/importexport/PKPImportExportDeployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,10 @@ public function export($rootFilter, $exportObjects, $opts = [])

$currentFilter = PKPImportExportFilter::getFilter($rootFilter, $this, $opts);

if (array_key_exists('noValidation', $opts)) {
$currentFilter->setNoValidation($opts['noValidation']);
}

libxml_use_internal_errors(true);
$result = $currentFilter->execute($exportObjects, true);

Expand Down

0 comments on commit 468c430

Please sign in to comment.