Fixed Transaction attachment broken due to #3097

This commit is contained in:
Geoffrey “Frogeye” Preud'homme
2020-02-09 15:27:56 +01:00
parent 8fb72fe697
commit 156c51798d
6 changed files with 10 additions and 10 deletions

2
public/v1/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -505,8 +505,8 @@
const uri = './api/v1/attachments';
const data = {
filename: fileData[key].name,
model: 'TransactionJournal',
model_id: fileData[key].journal,
attachable_type: 'TransactionJournal',
attachable_id: fileData[key].journal,
};
axios.post(uri, data)
.then(response => {
@@ -869,4 +869,4 @@
</script>
<style scoped>
</style>
</style>

View File

@@ -737,8 +737,8 @@
const uri = './api/v1/attachments';
const data = {
filename: fileData[key].name,
model: 'TransactionJournal',
model_id: fileData[key].journal,
attachable_type: 'TransactionJournal',
attachable_id: fileData[key].journal,
};
axios.post(uri, data)
.then(response => {
@@ -955,4 +955,4 @@
<style scoped>
</style>
</style>