//
$perm =& $group->getPermission(session_get_user());
if ($perm->isArtifactAdmin()) {
- $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
- FROM artifact_group_list agl, role_setting rs, user_group ug
- WHERE agl.group_artifact_id=rs.ref_id
- AND ug.user_id=$1
- AND rs.value IN (0, 1, 2)
- AND agl.group_id=$2
- AND ug.role_id = rs.role_id
- AND rs.section_name=$3',
- array(user_getid() ,
- $group_id,
- 'tracker'));
+ $rsv = db_int_array_to_any_clause (array (0, 1, 2)) ;
} else {
- $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
+ $rsv = db_int_array_to_any_clause (array (1, 2)) ;
+ }
+ $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
FROM artifact_group_list agl, role_setting rs, user_group ug
WHERE agl.group_artifact_id=rs.ref_id
AND ug.user_id=$1
- AND rs.value IN (1, 2)
- AND agl.group_id=$2
+ AND rs.value = ANY ($2)
+ AND agl.group_id=$3
AND ug.role_id = rs.role_id
- AND rs.section_name=$3',
- array(user_getid() ,
+ AND rs.section_name=$4',
+ array(user_getid(),
+ $rsv,
$group_id,
'tracker'));
- }
echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
</tr>
<tr><td colspan="2">
<div id="edit" style="display:none;">
- <strong><?php echo _('Detailed description') ?><?php echo utils_requiredField(); ?>: <?php echo notepad_button('document.forms[1].details') ?> <a href="javascript:help_window('/help/tracker.php?helpname=description')">(?)</a></strong>
+ <strong><?php echo _('Detailed description') ?><?php echo utils_requiredField(); ?>: <?php echo notepad_button('document.forms[2].details') ?> <a href="javascript:help_window('/help/tracker.php?helpname=description')">(?)</a></strong>
<br />
<textarea name="description" rows="30" cols="79"><?php echo $ah->getDetails(); ?></textarea>
</div>
echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
?>
<p>
- <strong><?php echo _('OR Attach A Comment') ?>:<?php echo notepad_button('document.forms[1].details') ?><a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=comment'); ?>')"><strong>(?)</strong></a></strong><br />
+ <strong><?php echo _('OR Attach A Comment') ?>:<?php echo notepad_button('document.forms[2].details') ?><a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=comment'); ?>')"><strong>(?)</strong></a></strong><br />
<textarea name="details" rows="7" cols="60"></textarea></p>
<h3><?php echo _('Followup') ?>:</h3>
<?php
<table border="0" width="80%">
<tr><td colspan="2">
<strong><?php echo _('Attach Files') ?>:</strong><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
+ <input type="file" name="input_file0" size="30" /><br />
+ <input type="file" name="input_file1" size="30" /><br />
+ <input type="file" name="input_file2" size="30" /><br />
+ <input type="file" name="input_file3" size="30" /><br />
+ <input type="file" name="input_file4" size="30" /><br />
<?php
//
// print a list of files attached to this Artifact