also replace <description/> and remove unnecessary empty <description/> from infolog.index

This commit is contained in:
ralf 2022-06-08 18:26:42 +02:00
parent 7268cde359
commit 136b6e82d0
2 changed files with 6 additions and 9 deletions

View File

@ -151,7 +151,8 @@ function send_template()
'<et2-$1-expose $2 $3></et2-$1-expose>', $str);
// modify <(vfs-mime|link-string|link-list) --> <et2-*
$str = preg_replace(ADD_ET2_PREFIX_LEGACY_REGEXP, '<et2-$1 $2></et2-$1>', $str);
$str = preg_replace(ADD_ET2_PREFIX_LEGACY_REGEXP, '<et2-$1 $2></et2-$1>',
str_replace('<description/>', '<et2-description></et2-description>', $str));
// ^^^^^^^^^^^^^^^^ above widgets get transformed independent of legacy="true" set in overlay ^^^^^^^^^^^^^^^^^^

View File

@ -99,13 +99,10 @@
<date-time id="${row}[info_datecompleted]" readonly="true" class="infolog_fixedHeight"/>
</vbox>
<vbox>
<hbox readonly="true">
<hbox readonly="true">
<date-duration id="${row}[info_used_time]" readonly="true" select_unit="true" display_format="@@duration_format" disabled="!$row_cont[info_used_time]"/>
<date-duration id="${row}[info_sum_timesheets]" readonly="true" select_unit="true" display_format="@@duration_format" class="timesheet"/>
</hbox>
<description/>
</hbox>
<hbox>
<date-duration id="${row}[info_used_time]" readonly="true" select_unit="true" display_format="@@duration_format" disabled="!$row_cont[info_used_time]"/>
<date-duration id="${row}[info_sum_timesheets]" readonly="true" select_unit="true" display_format="@@duration_format" class="timesheet"/>
</hbox>
<date-duration id="${row}[info_planned_time]" readonly="true" display_format="@@duration_format" select_unit="true" span="all" class="infolog_planned"/>
</vbox>
<vbox>
@ -212,7 +209,6 @@
</vbox>
</box>
</hbox>
<description/>
</row>
</rows>
</grid>