Remove material term reference field from Input logs.
This commit is contained in:
parent
5fd89cf2f8
commit
c4bd241ed3
|
@ -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:
|
||||
|
|
|
@ -5,5 +5,4 @@ package: farmOS Logs
|
|||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_entity
|
||||
- farm:farm_material_type
|
||||
- farm:farm_quantity_material
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue