[pve-devel] applied: [PATCH manager 4/6] ui: Utils: delete_if_default: add values by correct type

Thomas Lamprecht t.lamprecht at proxmox.com
Sun Apr 26 13:36:54 CEST 2020


On 4/9/20 4:10 PM, Dominik Csapak wrote:
> if 'delete' is an Array, we want to push into it, not append a string
> this could be an issue when we use an edit window with multiple inputpanels
> and deleteEmpty set on some fields
> 
> we then could have an aray like this:
> 
> values: {
>     delete: [
> 	'foo',
> 	'bar',
> 	'baz, qux',
>     ],
> },
> 
> which the edit window does not handle correctly anymore
> (it only does string splitting if 'delete' itself is a string)
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  www/manager6/Utils.js | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 

applied, thanks!




More information about the pve-devel mailing list