File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 188188$ customs = array ();
189189foreach ( $ user ->custom_field_ids as $ cfName => $ cfKey ) {
190190 if ( $ value = @$ issue ->renderedFields ->$ cfKey ) {
191- $ customs [$ cfName ] = $ issue -> renderedFields -> $ cfKey ;
191+ $ customs [$ cfName ] = print_r ( $ value , 1 ) ;
192192 }
193193 else if ( $ value = @$ fields ->$ cfKey ) {
194- $ customs [$ cfName ] = nl2br ( html ( trim ( implode ( "\n" , ( array ) $ value))) );
194+ $ customs [$ cfName ] = print_r ( $ value, 1 );
195195 }
196196}
197197
198198if ( $ customs ) {
199199 echo '<h2 class="visiblity-toggle-header open"><a id="custom-fields-toggler" href="#"> ' . count ($ customs ) . ' custom fields</a></h2> ' ;
200200 echo '<div class="custom-fields"> ' ;
201- foreach ($ customs as $ cfName => $ html ) {
201+ foreach ($ customs as $ cfName => $ text ) {
202202 echo '<div class="custom-field"> ' ;
203203 echo '<h3 class="custom-field-title"> ' . html ($ cfName ) . '</h3> ' ;
204- echo '<div class="custom-field-value"> ' . $ html . '</div> ' ;
204+ echo '<div class="custom-field-value"><pre style="margin: 0"> ' . html ( trim ( $ text )) . '</pre> </div> ' ;
205205 echo '</div> ' ;
206206 }
207207 echo '</div> ' ;
You can’t perform that action at this time.
0 commit comments