|
@@ 888-891 (lines=4) @@
|
| 885 |
|
|
| 886 |
|
// Configure form to respond to validation errors with form schema |
| 887 |
|
// if requested via react. |
| 888 |
|
$form->setValidationResponseCallback(function() use ($form, $id, $versionId) { |
| 889 |
|
$schemaId = Controller::join_links($this->Link('schema/FileHistoryForm'), $id, $versionId); |
| 890 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 891 |
|
}); |
| 892 |
|
|
| 893 |
|
|
| 894 |
|
return $form; |
|
@@ 1260-1263 (lines=4) @@
|
| 1257 |
|
$handler = AddToCampaignHandler::create($this, $record); |
| 1258 |
|
$form = $handler->Form($record); |
| 1259 |
|
|
| 1260 |
|
$form->setValidationResponseCallback(function() use ($form, $id) { |
| 1261 |
|
$schemaId = Controller::join_links($this->Link('schema/AddToCampaignForm'), $id); |
| 1262 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 1263 |
|
}); |
| 1264 |
|
|
| 1265 |
|
return $form; |
| 1266 |
|
} |