Commit 95611bae authored by Jonny Bradley's avatar Jonny Bradley

[REM] trackers: Clean out obsolete selectValues() calls (function removed in 7.x)

parent af346032
......@@ -1132,18 +1132,6 @@ function wikiplugin_tracker($data, $params)
if ($f['type'] != 'S') {
$back .= '</div>';
}
if (!empty($f['http_request']) && !empty($itemId)) {
$js .= 'selectValues("trackerIdList=' . $f['http_request'][0]
. '&fieldlist=' . $f['http_request'][3]
. '&filterfield=' . $f['http_request'][1]
. '&status=' . $f['http_request'][4]
. '&mandatory=' . $f['http_request'][6]
. '&filtervalue=' . $f['http_request'][7]
. '&selected=' . $f['http_request'][8]
. '","' . $f['http_request'][5]
.'");'
;
}
}
}
if (!empty($tpl)) {
......
......@@ -377,13 +377,3 @@
{/tab}
{/if}
{/tabset}
{foreach from=$fields key=ix item=field_value}
{assign var=fid value=$field_value.fieldId}
{if isset($listfields.$fid.http_request) && $listfields.$fid.http_request}
{jq}
selectValues('trackerIdList={{$listfields.$fid.http_request[0]}}&fieldlist={{$listfields.$fid.http_request[3]}}&filterfield={{$listfields.$fid.http_request[1]}}&status={{$listfields.$fid.http_request[4]}}&mandatory={{$listfields.$fid.http_request[6]}}','{{$listfields.$fid.http_request[5]}}','{{$field_value.ins_id}}')
{/jq}
{/if}
{/foreach}
<select name="{$field.ins_id}" {if $field.http_request}onchange="selectValues('trackerIdList={$field.http_request[0]}&amp;fieldlist={$field.http_request[3]}&amp;filterfield={$field.http_request[1]}&amp;status={$field.http_request[4]}&amp;mandatory={$field.http_request[6]}&amp;filtervalue='+escape(this.value),'{$field.http_request[5]}')"{/if}>
<select name="{$field.ins_id}">
{if $field.isMandatory ne 'y' || empty($field.value)}
<option value=""{if $field.value eq '' or $field.value eq 'None'} selected="selected"{/if}>&nbsp;</option>
{/if}
......
......@@ -14,8 +14,8 @@
</label>
{/foreach}
{else}
<select name="{$field.ins_id|escape}" {if $field.http_request}onchange="selectValues('trackerIdList={$field.http_request[0]}&amp;fieldlist={$field.http_request[3]}&amp;filterfield={$field.http_request[1]}&amp;status={$field.http_request[4]}&amp;mandatory={$field.http_request[6]}&amp;filtervalue='+escape(this.value),'{$field.http_request[5]}')"{/if}>
{assign var=otherValue value=$field.value}
<select name="{$field.ins_id|escape}">
{assign var=otherValue value=$field.value}
{if $field.isMandatory ne 'y' || empty($field.value)}
<option value="">&nbsp;</option>
{/if}
......
<select name="{$field.ins_id}" {if $field.http_request}onchange="selectValues('trackerIdList={$field.http_request[0]}&amp;fieldlist={$field.http_request[3]}&amp;filterfield={$field.http_request[1]}&amp;status={$field.http_request[4]}&amp;mandatory={$field.http_request[6]}&amp;filtervalue='+escape(this.value),'{$field.http_request[5]}')"{/if}>
<select name="{$field.ins_id}">
{if $field.isMandatory ne 'y' || empty($field.value)}
<option value=""></option>
{/if}
......
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