This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 6b96f3b88ca97d782127101bcf431c14df4d0639 (commit)
from f216c0aa182818ca95687cd0a9cb310ec21797d9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=6b96f3b88ca97d782127101bcf431c14df4d0639
commit 6b96f3b88ca97d782127101bcf431c14df4d0639
Author: Franck Villaume <[email protected]>
Date: Sat Dec 24 17:20:01 2016 +0100
support for html attributes in technicianBox and submitterBox functions
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php
b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 4f81f88..0953cf8 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -1118,7 +1118,7 @@ class ArtifactTypeHtml extends ArtifactType {
return html_e('input', array_merge(array('type'=>'text',
'name'=>'extra_fields['.$extra_field_id.']', 'pattern'=>$datepattern.'
'.$datepattern, 'maxlength'=>21, 'size'=>21, 'value'=>$dateRange),$attrs));
}
- function technicianBox($name = 'assigned_to[]', $checked = 'xzxz',
$show_100 = true, $text_100 = 'none', $extra_id = '-1', $extra_name = '',
$multiple = false) {
+ function technicianBox($name = 'assigned_to[]', $checked = 'xzxz',
$show_100 = true, $text_100 = 'none', $extra_id = '-1', $extra_name = '',
$multiple = false, $attrs = array()) {
if ($text_100=='none'){
$text_100=_('Nobody');
}
@@ -1146,13 +1146,13 @@ class ArtifactTypeHtml extends ArtifactType {
$checked = explode(',',$checked);
}
$size = min(count($ids)+1, 15);
- return html_build_multiple_select_box_from_arrays($ids,
$names, $name, $checked, $size, $show_100, $text_100);
+ return html_build_multiple_select_box_from_arrays($ids,
$names, $name, $checked, $size, $show_100, $text_100, false, '', false, $attrs);
} else {
- return html_build_select_box_from_arrays($ids, $names,
$name, $checked, $show_100, $text_100);
+ return html_build_select_box_from_arrays($ids, $names,
$name, $checked, $show_100, $text_100, false, '', false, $attrs);
}
}
- function submitterBox
($name='submitted_by[]',$checked='xzxz',$show_100=true,$text_100='none',$extra_id='-1',$extra_name='',$multiple=false)
{
+ function submitterBox($name = 'submitted_by[]', $checked = 'xzxz',
$show_100 = true, $text_100 = 'none', $extra_id = '-1', $extra_name = '',
$multiple = false, $attrs = array()) {
if ($text_100=='none'){
$text_100=_('Nobody');
}
@@ -1169,9 +1169,9 @@ class ArtifactTypeHtml extends ArtifactType {
$checked = explode(',',$checked);
}
$size = min( count($ids)+1, 15);
- return html_build_multiple_select_box_from_arrays
($ids,$names,$name,$checked,$size,$show_100,$text_100);
+ return html_build_multiple_select_box_from_arrays($ids,
$names, $name, $checked, $size, $show_100, $text_100, false, '', false, $attrs);
} else {
- return html_build_select_box_from_arrays
($ids,$names,$name,$checked,$show_100,$text_100);
+ return html_build_select_box_from_arrays($ids, $names,
$name, $checked, $show_100, $text_100, false, '', false, $attrs);
}
}
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/include/ArtifactTypeHtml.class.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits