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  fc99f65464eb2c8ee47f4fa021f472ec218328a2 (commit)
      from  0ebeb587c24a94128ea1123ea65940b19ff0d6cf (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=fc99f65464eb2c8ee47f4fa021f472ec218328a2

commit fc99f65464eb2c8ee47f4fa021f472ec218328a2
Author: Franck Villaume <[email protected]>
Date:   Wed Dec 28 15:50:32 2016 +0100

    artifact display widget: fix select customfield when customfield number > 2

diff --git a/src/common/widget/Widget_TrackerContent.class.php 
b/src/common/widget/Widget_TrackerContent.class.php
index 5077787..d7616fc 100644
--- a/src/common/widget/Widget_TrackerContent.class.php
+++ b/src/common/widget/Widget_TrackerContent.class.php
@@ -255,21 +255,27 @@ EOS;
                        $cells = array();
                        for ($i = 0; count($stillAvailableExtraFields) > $i; 
$i++) {
                                $cells[] = array(html_e('div', array('id' => 
'ef'.$stillAvailableExtraFields[$i][0], 'class' => 'wb_extrafield', 'style' => 
'background: #e6e6e6 none repeat scroll 0 0; padding: 2px; text-align: 
center;'), 
util_unconvert_htmlspecialchars($stillAvailableExtraFields[$i]['field_name']).'<div
 id="xef'.$stillAvailableExtraFields[$i][0].'" style="display: none" 
class="ef-widget-remove">x</div>'), 'id' => 
'tdef'.$stillAvailableExtraFields[$i][0], 'class' => 'td-droppable', 'width' => 
'50%');
-                               if ((($i % 2) > 0) || 
count($stillAvailableExtraFields) == 1) {
+                               if ($i % 2) {
                                        $content .= 
$HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), 
$cells);
                                        $cells = array();
                                }
                        }
+                       if (count($cells)) {
+                               $content .= $HTML->multiTableRow(array('class' 
=> $HTML->boxGetAltRowStyle($i, true)), $cells);
+                       }
                }
                if (count($arr) > 0) {
                        $cells = array();
                        for ($i = 0; count($arr) > $i; $i++) {
                                $cells[] = array('', 'id' => 'tdef'.$arr[$i], 
'width' => '50%');
-                               if ((($i % 2) > 0) || count($arr) == 1) {
+                               if ($i % 2) {
                                        $content .= 
$HTML->multiTableRow(array('class' => $HTML->boxGetAltRowStyle($i, true)), 
$cells);
                                        $cells = array();
                                }
                        }
+                       if (count($cells)) {
+                               $content .= $HTML->multiTableRow(array('class' 
=> $HTML->boxGetAltRowStyle($i, true)), $cells);
+                       }
                }
                if (count($stillAvailableExtraFields) > 0 || count($arr) > 0) {
                        $content .= $HTML->listTableBottom();

-----------------------------------------------------------------------

Summary of changes:
 src/common/widget/Widget_TrackerContent.class.php | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to