YetiForceCRM icon indicating copy to clipboard operation
YetiForceCRM copied to clipboard

[bug] adding "Select from field" in lineitems crashes

Open davide-alghi opened this issue 11 months ago • 0 comments

🐞 bug report

⁉️ Describe the bug

if you try to add the lineitem's field "Select from field", YF crashes

🔥 How to trigger the error

Schermata del 2024-04-01 18-59-07

👷 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>

davide-alghi avatar Apr 01 '24 17:04 davide-alghi