Browse Source

fix(gui): encode id to escape special chars in url

re #4704

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4715/head
Pranav C 2 years ago
parent
commit
c0266c007f
  1. 4
      packages/nc-gui/composables/useViewData.ts

4
packages/nc-gui/composables/useViewData.ts

@ -264,7 +264,7 @@ export function useViewData(
project?.value.id as string, project?.value.id as string,
metaValue?.id as string, metaValue?.id as string,
viewMetaValue?.id as string, viewMetaValue?.id as string,
id, encodeURIComponent(id),
{ {
// if value is undefined treat it as null // if value is undefined treat it as null
[property]: toUpdate.row[property] ?? null, [property]: toUpdate.row[property] ?? null,
@ -275,7 +275,7 @@ export function useViewData(
// } // }
) )
// audit // audit
$api.utils.auditRowUpdate(id, { $api.utils.auditRowUpdate(encodeURIComponent(id), {
fk_model_id: metaValue?.id as string, fk_model_id: metaValue?.id as string,
column_name: property, column_name: property,
row_id: id, row_id: id,

Loading…
Cancel
Save