Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tpokorra committed Dec 31, 2024
1 parent 8bb0b75 commit d2993f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ public function updateSubmission(int $formId, int $submissionId, array $answers,
if (empty($answers)) {
// Clear Answers
foreach ($questions as $question) {
$this->storeAnswersForQuestion($form, $submission->getId(), $question, ['']), true);
$this->storeAnswersForQuestion($form, $submission->getId(), $question, [''], true);
}
} else {
// Process Answers
Expand Down
21 changes: 2 additions & 19 deletions lib/Migration/Version030300Date20230815000000.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,8 @@
declare(strict_types=1);

/**
* @copyright Copyright (c) 2023 Timotheus Pokorra <[email protected]>
*
* @author Timotheus Pokorra <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Forms\Migration;
Expand Down

0 comments on commit d2993f3

Please sign in to comment.