#1
Ahoy, Trongate Crew!

Just a quick update on a couple of important fixes we’ve rolled out recently.

1. Restoring the Original `get_data_from_db()` Method

Over the past few weeks, we experimented with a new syntax for our `get_data_from_db()` method. While it initially showed promise, it ultimately caused more issues than benefits. The new approach was tricky to work with and led to compatibility problems with our code generator. So, we’ve reverted to the original syntax that many of you are already familiar with and that plays nicely with the code generator.

2. Fix for the `post()` Helper Function

We’ve also addressed a bug where the `post()` helper was returning `NULL` values instead of empty strings when a posted variable wasn’t found. This has been fixed! Now, when a variable is missing, you’ll get an empty string as expected, keeping your form handling logic intact.

What You Need to Do:

1. Update the Trongate Desktop App: Make sure you’re running v1.3.3058 or higher.
2. Review Your Code: Check if your app contains methods named `get_data_from_post`. If your code looks like this:



...then update it to this style:




Site-Wide Search and Replace Recommendations:

For those of you updating existing projects, I recommend performing the following four site-wide search and replace actions:

1. FIRST Search and Replace:

Replace this:



With:



2. SECOND Search and Replace:

Replace this:



With:



3. THIRD Search and Replace:

Replace this:



Or this:



With:



4. FOURTH Search and Replace:

Replace this:



Or this:

1

With:


1

After making these updates, your app should be fully in sync with the latest improvements!

Happy Coding!