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 90ba9fd17cd76b2ab8dd3d18221245f1fdfa40df (commit)
from 93c57d088596d4371f46bad89cc9f16cb5ba30cc (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=90ba9fd17cd76b2ab8dd3d18221245f1fdfa40df
commit 90ba9fd17cd76b2ab8dd3d18221245f1fdfa40df
Author: Franck Villaume <[email protected]>
Date: Wed May 31 15:44:06 2017 +0000
fix form attr for widget display
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php
b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 517e747..f7a98a5 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -1131,8 +1131,12 @@ class ArtifactTypeHtml extends ArtifactType {
$vals[$i]=$arr[$i]['element_name'];
}
// Convert artifact id to links.
+ $attrsTxt = array();
+ if (isset($attrs['form'])) {
+ $attrsTxt['form'] = $attrs['form'];
+ }
$html_contents = preg_replace_callback('/\b(\d+)\b/',
create_function('$matches', 'return _artifactid2url($matches[1], \'title\');'),
$contents);
- $edit_contents = $this->renderTextField ($extra_field_id,
$contents, $size, $maxlength);
+ $edit_contents = $this->renderTextField ($extra_field_id,
$contents, $size, $maxlength, $attrsTxt);
return
html_e('div',array_merge(array('id'=>'edit'.$extra_field_id, 'style'=>'display:
none', 'title'=>_('Tip: Enter a space-separated list of artifact ids ([#NNN]
also accepted)')), $attrs), $edit_contents)
.html_e('div',array_merge(array('id'=>'show'.$extra_field_id,
'style'=>'display: block'), $attrs), $html_contents);
}
@@ -1155,6 +1159,9 @@ class ArtifactTypeHtml extends ArtifactType {
$vals[$i]=$arr[$i]['element_name'];
}
$attrsTxt = array();
+ if (isset($attrs['form'])) {
+ $attrsTxt['form'] = $attrs['form'];
+ }
if (is_object($ah)) {
$attrsTxt['pattern']='^(?!'.$ah->getID().'$)\d*$';
} else {
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/include/ArtifactTypeHtml.class.php | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits