Commit a39eb3ad authored by sylvieg's avatar sylvieg

[FIX]tracker: also update user selector option 1 even if the field is hidden

parent e247c1a1
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-view_tracker.php,v 1.136 2007-10-09 15:29:00 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-view_tracker.php,v 1.137 2007-10-10 12:57:33 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -182,6 +182,11 @@ for ($i = 0; $i < $temp_max; $i++) {
if (!empty($tracker_info['defaultOrderKey']) and $tracker_info['defaultOrderKey'] == $xfields["data"][$i]['fieldId']) {
$orderkey = true;
}
if (($xfields['data'][$i]['type'] == 'u' || $xfields['data'][$i]['type'] == 'g' || $xfields['data'][$i]['type'] == 'I') && isset($xfields['data'][$i]['options_array'][0]) && $xfields['data'][$i]['options_array'][0] == 1) {
$creatorSelector = true;
} else {
$creatorSelector = false;
}
if (($xfields["data"][$i]['isTblVisible'] == 'y' or $xfields["data"][$i]['isSearchable'] == 'y' or in_array($fid, $popupFields))
// and ($xfields["data"][$i]['isPublic'] == 'y' or $tiki_p_admin_trackers == 'y') ispublic is for tracker plugin not normal view
and ($xfields["data"][$i]['isHidden'] == 'n' or $tiki_p_admin_trackers == 'y' or ($xfields["data"][$i]['type'] == 's'and $tiki_p_tracker_view_ratings == 'y'))
......@@ -204,7 +209,7 @@ for ($i = 0; $i < $temp_max; $i++) {
}
if ($xfields["data"][$i]['isHidden'] == 'n' or $tiki_p_admin_trackers == 'y' or ($xfields["data"][$i]['type'] == 's'and $tiki_p_tracker_view_ratings == 'y')) {
if ($creatorSelector or $xfields["data"][$i]['isHidden'] == 'n' or $tiki_p_admin_trackers == 'y' or ($xfields["data"][$i]['type'] == 's'and $tiki_p_tracker_view_ratings == 'y')) {
$ins_fields["data"][$i] = $xfields["data"][$i];
$fields["data"][$i] = $xfields["data"][$i];
if ($fields["data"][$i]["type"] == 'f') { // date and time
......
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