"might_have" fields not fleshed out in action trigger event definition template output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
EXECUTIVE SUMMARY: Apparently linked fields with a reltype of "might_have" in the fieldmapper do not get fleshed out in action trigger event definition template output.
DETAILS:
I'm using Evergreen 2.0.8. I've got an action trigger event definition that uses a hook with bresv (booking:
Hello, [%- target.
The following item is ready for pickup: [%- target.
Requested at: [%- target.
Pickup at: [%- target.
My event environment includes usr, target_
Hello, Jeff!
The following item is ready for pickup: Test Item
Requested at: Anytown Public Library
Pickup at:
That last line ought to say "Pickup at: Anytown Public Library." In other words, pickup_lib is not being fleshed out, yet the other elements of my environment are. (And yes, there is a valid actor.org_unit.id in the booking.
The only difference I can see between pickup_lib and the others is the reltype as defined in the fieldmapper:
<class id="bresv" controller=
<links>
<link field="usr" reltype="has_a" key="id" map="" class="au"/>
<link field="
<link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
<link field="pickup_lib" reltype=
</links>
</class>
Here, pickup_lib's reltype is "might_have" where the others are "has_a". I tried adding some other "might_have" fields to my environment (e.g. capture_staff), and they didn't get fleshed out either, whereas "has_a" fields always get fleshed out. So I'm fairly confident that the reltype is somehow the crux of the problem.
I don't fully understand the fleshing-out process, so I don't have a bugfix for this yet.
tags: | added: actiontrigger |
Changed in evergreen: | |
status: | Incomplete → Confirmed |
"(And yes, there is a valid actor.org_unit.id in the booking. reservation. request_ lib record.)"
There's also a valid ID in booking. reservation. pickup_ lib, which is what I meant to say. :)