Content
View differences
Updated by Markus Kahl about 2 years ago
### Steps to reproduce
* this is unclear, but it looks people are working on documents and saving them, not realising that they are not actually saved
### What is the buggy behavior?
* contents are not actually saved and instead the literal `undefined` is stored, e.g. for wiki pages, document contents or work package descriptions
* presumably it still looks as if the content has been saved, however
### What is the expected behavior?
* that should not happen
### **Logs**
```text
irb(main):011> wiki.journals.map(&:data)
=>
[#<Journal::WikiPageJournal:0x00007ff876f426a0 id: 3296, author_id: 104, text: "">,
#<Journal::WikiPageJournal:0x00007ff875851900 id: 3298, author_id: 104, text: "">,
#<Journal::WikiPageJournal:0x00007ff875851680 id: 3301, author_id: 104, text: "undefined">]
```
### Environment information
**OpenProject installation type**
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_v14.0.0_
**Browser**
* [ ] Chrome
* [x] [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] [x] Other (please specify)
```text
OS and version Windows: 10 Pro Version 22H2
Browser and version: FireFox Version 125.0.3 (64-Bit)
Browser extensions: Kee – Password Manager & uBlock Origin
``` specify) - unclear
* this is unclear, but it looks people are working on documents and saving them, not realising that they are not actually saved
### What is the buggy behavior?
* contents are not actually saved and instead the literal `undefined` is stored, e.g. for wiki pages, document contents or work package descriptions
* presumably it still looks as if the content has been saved, however
### What is the expected behavior?
* that should not happen
### **Logs**
```text
irb(main):011> wiki.journals.map(&:data)
=>
[#<Journal::WikiPageJournal:0x00007ff876f426a0 id: 3296, author_id: 104, text: "">,
#<Journal::WikiPageJournal:0x00007ff875851900 id: 3298, author_id: 104, text: "">,
#<Journal::WikiPageJournal:0x00007ff875851680 id: 3301, author_id: 104, text: "undefined">]
```
### Environment information
**OpenProject installation type**
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_v14.0.0_
**Browser**
* [ ] Chrome
* [x]
* [ ] Safari
* [ ] Mobile Safari
* [ ]
```text
OS and version Windows: 10 Pro Version 22H2
Browser and version: FireFox Version 125.0.3 (64-Bit)
Browser extensions: Kee – Password Manager & uBlock Origin
```