Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autosave fix #508

Merged
merged 9 commits into from
Jan 24, 2025
Prev Previous commit
Removed unusual undef code
droberts-ctrlo committed Jan 24, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 2ba65c7e8f50913ae551ebeeda9d8998206ba9ff
5 changes: 1 addition & 4 deletions src/frontend/components/modal/modals/curval/lib/component.js
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ class CurvalModalComponent extends ModalComponent {
const editButton = $(
`<td>
<button type="button" class="btn btn-small btn-link btn-js-curval-modal" data-toggle="modal" data-target="#curvalModal" data-layout-id="${col_id}"
data-instance-name="${instance_name}" data-current-id="${current_id}">
data-instance-name="${instance_name}" ${current_id ? `data-current-id="${current_id}"`:``}>
<span class="btn__title">Edit</span>
</button>
</td>`,
@@ -334,9 +334,6 @@ class CurvalModalComponent extends ModalComponent {
let url = current_id
? `/record/${current_id}`
: `/${instance_name}/record/`

if(url.endsWith('undefined'))
url=`/${instance_name}/record/`

url = `${url}?include_draft&modal=${layout_id}`
if (form_data) url = url + `&${form_data}`