|
@@ 768-771 (lines=4) @@
|
| 765 |
|
|
| 766 |
|
// Configure form to respond to validation errors with form schema |
| 767 |
|
// if requested via react. |
| 768 |
|
$form->setValidationResponseCallback(function (ValidationResult $errors) use ($form, $id) { |
| 769 |
|
$schemaId = Controller::join_links($this->Link('schema/fileEditForm'), $id); |
| 770 |
|
return $this->getSchemaResponse($schemaId, $form, $errors); |
| 771 |
|
}); |
| 772 |
|
|
| 773 |
|
return $form; |
| 774 |
|
} |
|
@@ 875-878 (lines=4) @@
|
| 872 |
|
|
| 873 |
|
// Configure form to respond to validation errors with form schema |
| 874 |
|
// if requested via react. |
| 875 |
|
$form->setValidationResponseCallback(function (ValidationResult $errors) use ($form, $id, $versionId) { |
| 876 |
|
$schemaId = Controller::join_links($this->Link('schema/fileHistoryForm'), $id, $versionId); |
| 877 |
|
return $this->getSchemaResponse($schemaId, $form, $errors); |
| 878 |
|
}); |
| 879 |
|
|
| 880 |
|
return $form; |
| 881 |
|
} |
|
@@ 1230-1233 (lines=4) @@
|
| 1227 |
|
$handler = AddToCampaignHandler::create($this, $record, 'addToCampaignForm'); |
| 1228 |
|
$form = $handler->Form($record); |
| 1229 |
|
|
| 1230 |
|
$form->setValidationResponseCallback(function (ValidationResult $errors) use ($form, $id) { |
| 1231 |
|
$schemaId = Controller::join_links($this->Link('schema/addToCampaignForm'), $id); |
| 1232 |
|
return $this->getSchemaResponse($schemaId, $form, $errors); |
| 1233 |
|
}); |
| 1234 |
|
|
| 1235 |
|
return $form; |
| 1236 |
|
} |