|
@@ 764-767 (lines=4) @@
|
| 761 |
|
|
| 762 |
|
// Configure form to respond to validation errors with form schema |
| 763 |
|
// if requested via react. |
| 764 |
|
$form->setValidationResponseCallback(function() use ($form, $file) { |
| 765 |
|
$schemaId = Controller::join_links($this->Link('schema/FileEditForm'), $file->exists() ? $file->ID : ''); |
| 766 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 767 |
|
}); |
| 768 |
|
|
| 769 |
|
return $form; |
| 770 |
|
} |
|
@@ 869-873 (lines=5) @@
|
| 866 |
|
|
| 867 |
|
// Configure form to respond to validation errors with form schema |
| 868 |
|
// if requested via react. |
| 869 |
|
$form->setValidationResponseCallback(function() use ($form, $file) { |
| 870 |
|
$schemaId = Controller::join_links($this->Link('schema/FileHistoryForm'), $file->exists() ? $file->ID : ''); |
| 871 |
|
|
| 872 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 873 |
|
}); |
| 874 |
|
|
| 875 |
|
$form->makeReadonly(); |
| 876 |
|
|
|
@@ 1209-1212 (lines=4) @@
|
| 1206 |
|
$handler = AddToCampaignHandler::create($this, $record); |
| 1207 |
|
$form = $handler->Form($record); |
| 1208 |
|
|
| 1209 |
|
$form->setValidationResponseCallback(function() use ($form, $id) { |
| 1210 |
|
$schemaId = Controller::join_links($this->Link('schema/AddToCampaignForm'), $id); |
| 1211 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 1212 |
|
}); |
| 1213 |
|
|
| 1214 |
|
return $form; |
| 1215 |
|
} |