fix: show pickup select field for outbound bus travel only
This commit is contained in:
1 parent
f795a3ea21
commit
f99a2d99a2
3 files changed
+10
-22
No files matched your search
@@ -250,13 +250,10 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
|
||||
),
|
||||
];
|
||||
|
||||
// Show pickup only when either outbound or inbound transportation is BUS (hidden by default)
|
||||
// Pickup field - shown only when outbound transportation is BUS (pickup is for outbound journey)
|
||||
$this->fieldStateConditions['pickup'] = [
|
||||
'hidden' => CompositeCondition::not(
|
||||
CompositeCondition::or(
|
||||
ServiceSubTypeCondition::equals('transportationOutbound', DirectionMapper::SUBTYPE_BUS_API),
|
||||
ServiceSubTypeCondition::equals('transportationInbound', DirectionMapper::SUBTYPE_BUS_API)
|
||||
)
|
||||
ServiceSubTypeCondition::equals('transportationOutbound', DirectionMapper::SUBTYPE_BUS_API)
|
||||
),
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user