|
@@ 749-752 (lines=4) @@
|
| 746 |
|
|
| 747 |
|
// Configure form to respond to validation errors with form schema |
| 748 |
|
// if requested via react. |
| 749 |
|
$form->setValidationResponseCallback(function() use ($form, $file) { |
| 750 |
|
$schemaId = Controller::join_links($this->Link('schema/FileEditForm'), $file->exists() ? $file->ID : ''); |
| 751 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 752 |
|
}); |
| 753 |
|
|
| 754 |
|
return $form; |
| 755 |
|
} |
|
@@ 808-812 (lines=5) @@
|
| 805 |
|
|
| 806 |
|
// Configure form to respond to validation errors with form schema |
| 807 |
|
// if requested via react. |
| 808 |
|
$form->setValidationResponseCallback(function() use ($form, $file) { |
| 809 |
|
$schemaId = Controller::join_links($this->Link('schema/FileHistoryForm'), $file->exists() ? $file->ID : ''); |
| 810 |
|
|
| 811 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 812 |
|
}); |
| 813 |
|
|
| 814 |
|
$form->makeReadonly(); |
| 815 |
|
|
|
@@ 1141-1144 (lines=4) @@
|
| 1138 |
|
$handler = AddToCampaignHandler::create($this, $record); |
| 1139 |
|
$form = $handler->Form($record); |
| 1140 |
|
|
| 1141 |
|
$form->setValidationResponseCallback(function() use ($form, $id) { |
| 1142 |
|
$schemaId = Controller::join_links($this->Link('schema/AddToCampaignForm'), $id); |
| 1143 |
|
return $this->getSchemaResponse($form, $schemaId); |
| 1144 |
|
}); |
| 1145 |
|
|
| 1146 |
|
return $form; |
| 1147 |
|
} |