Remove material term reference field from Input logs.

This commit is contained in:
Michael Stenta 2021-08-05 15:40:44 -07:00
parent 5fd89cf2f8
commit c4bd241ed3
3 changed files with 0 additions and 21 deletions

View File

@ -267,10 +267,6 @@ Input Logs have the following additional attributes:
- Purchase date (timestamp)
- Source (string)
And the following additional relationships:
- Material type (References Terms in the "Material types" vocabulary)
#### Lab Test Logs
Lab Test Logs have the following additional attributes:

View File

@ -5,5 +5,4 @@ package: farmOS Logs
core_version_requirement: ^9
dependencies:
- farm:farm_entity
- farm:farm_material_type
- farm:farm_quantity_material

View File

@ -32,22 +32,6 @@ class Input extends FarmLogType {
];
$fields['lot_number'] = $this->farmFieldFactory->bundleFieldDefinition($options);
// Material type.
$options = [
'type' => 'entity_reference',
'label' => $this->t('Material type'),
'description' => $this->t('What type of materials are being applied?'),
'target_type' => 'taxonomy_term',
'target_bundle' => 'material_type',
'auto_create' => TRUE,
'multiple' => TRUE,
'weight' => [
'form' => -50,
'view' => -50,
],
];
$fields['material_type'] = $this->farmFieldFactory->bundleFieldDefinition($options);
// Method.
$options = [
'type' => 'string',