YetiForceCRM
YetiForceCRM copied to clipboard
[bug] adding "Select from field" in lineitems crashes
🐞 bug report
⁉️ Describe the bug
if you try to add the lineitem's field "Select from field", YF crashes
🔥 How to trigger the error
👷 Testing
- [x] I confirm that I tested it at https://gitstable.yetiforce.com
- [x] I confirm that I tested it at https://gitdeveloper.yetiforce.com
Fix
in line
https://github.com/YetiForceCompany/YetiForceCRM/blob/4b5e4244b8338c837a8132ff12686f29f222d89b/layouts/basic/modules/Settings/LayoutEditor/inventoryTypes/PicklistField.tpl#L19
replace
<option value="{$VALUE}" {if $PARAMS[$MODULE] == $VALUE} selected {/if}>{$NAME}</option>
with
<option value="{$VALUE}" {if $PARAMS && $PARAMS[$MODULE] == $VALUE} selected {/if}>{$NAME}</option>