Greetings all, Hope all is well.
some information, I am using latest Trongate that has Pages.
Problem, I create a new module with desktop app and it does what I want, makes everything okay. The thing is when I save a new or update data in a module the data in database is always striped of line breaks from the data I just inserted into database.
Here is the rub, I create a page through the pages module and it saves the data text format and has the line breaks.
Am I doing something wrong? Or does making your own module take out line breaks now?
Sample:
what I insert,
The brown fox runs,
The brown fox runs fast,
What goes into database,
The brown fox runs,The brown fox runs fast,
Any ideas what's going on?
Created Modules do not save line breaks into Database?
1 years ago
1 years ago
#1
1 years ago
#2
Hi Tom, apologies for the delay been a bit side tracked. Will have a look at this for you soon.
1 years ago
#3
★ Winning Post! ★
The thread creator has indicated that this post solved the problem or provided the best insight.
Members who post winning responses earn points for our leaderboard.
Points mean prizes!
Here is a quick patch you can apply to get around this until we can work out a more sensible fix:just add it after the `get_data_from_post()` or you can choose to write the raw data to the database and add nl2br() before displaying it back into the view.
Hope this helps
Cheers,
Si
1 years ago
#4
Thanks DaFa, the fix worked, I'll be waiting for the Trongate update to fix this. Appreciate all the work being done here!