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