Timesheet: Fix missing emptyLabel in pricelist select

This commit is contained in:
nathan 2022-10-13 10:50:28 -06:00
parent edd46d1127
commit 68f424173e

View File

@ -27,7 +27,9 @@
<row disabled="@ts_viewtype">
<description value="Unitprice" for="ts_unitprice"/>
<hbox disabled="@pm_integration=none" >
<projectmanager-pricelist id="pl_id" class="et2_fullWidth" onchange="window.app.timesheet.et2.getWidgetById('ts_unitprice').set_value(this.options[this.selectedIndex].text.lastIndexOf('(') &lt; 0 ? '' : this.options[this.selectedIndex].text.slice(this.options[this.selectedIndex].text.lastIndexOf('(')+1,-1));" options="None"/>
<projectmanager-pricelist id="pl_id" class="et2_fullWidth"
onchange="window.app.timesheet.et2.getWidgetById('ts_unitprice').set_value(this.options[this.selectedIndex].text.lastIndexOf('(') &lt; 0 ? '' : this.options[this.selectedIndex].text.slice(this.options[this.selectedIndex].text.lastIndexOf('(')+1,-1));"
emptyLabel="None"/>
</hbox>
<description/>
<hbox disabled="@pm_integration=none">