Commit e59d608c authored by nkoth's avatar nkoth

[FIX] To get items list from other tracker based on value of items link field...

[FIX] To get items list from other tracker based on value of items link field in this tracker, the items link field value needs to be the linked field value, not just the itemId
parent 129f6d56
......@@ -92,7 +92,10 @@ class Tracker_Field_ItemsList extends Tracker_Field_Abstract
} else {
$localField = (int) $this->getOption(2);
$localValue = $this->getData($localField);
$localFieldDef = $this->getTrackerDefinition()->getField($localField);
if ($localFieldDef['type'] == 'r' && isset($localFieldDef['options_array'][0]) && isset($localFieldDef['options_array'][1])) {
$localValue = $trklib->get_item_value($localFieldDef['options_array'][0], $localValue, $localFieldDef['options_array'][1]);
}
// Skip nulls
if ($localValue) {
$items = $trklib->get_items_list($trackerId, $remoteField, $localValue, $status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment