|
@@ 763-766 (lines=4) @@
|
| 760 |
|
|
| 761 |
|
// Configure form to respond to validation errors with form schema |
| 762 |
|
// if requested via react. |
| 763 |
|
$form->setValidationResponseCallback(function() use ($form, $file) { |
| 764 |
|
$schemaId = Controller::join_links($this->Link('schema/FileEditForm'), $file->exists() ? $file->ID : ''); |
| 765 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 766 |
|
}); |
| 767 |
|
|
| 768 |
|
return $form; |
| 769 |
|
} |
|
@@ 822-826 (lines=5) @@
|
| 819 |
|
|
| 820 |
|
// Configure form to respond to validation errors with form schema |
| 821 |
|
// if requested via react. |
| 822 |
|
$form->setValidationResponseCallback(function() use ($form, $file) { |
| 823 |
|
$schemaId = Controller::join_links($this->Link('schema/FileHistoryForm'), $file->exists() ? $file->ID : ''); |
| 824 |
|
|
| 825 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 826 |
|
}); |
| 827 |
|
|
| 828 |
|
$form->makeReadonly(); |
| 829 |
|
|
|
@@ 1155-1158 (lines=4) @@
|
| 1152 |
|
$handler = AddToCampaignHandler::create($this, $record); |
| 1153 |
|
$form = $handler->Form($record); |
| 1154 |
|
|
| 1155 |
|
$form->setValidationResponseCallback(function() use ($form, $id) { |
| 1156 |
|
$schemaId = Controller::join_links($this->Link('schema/AddToCampaignForm'), $id); |
| 1157 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 1158 |
|
}); |
| 1159 |
|
|
| 1160 |
|
return $form; |
| 1161 |
|
} |