Serious Subform Namespace Error

Serious Subform Namespace Error

I found a serious error that caused my application to loose a significant amount of data.

Zoho is unintentionally causing a variable that was pointing to a subform to now point to a form instead.  Here is how it works:

Let's say we create two forms:
Books
Pages

The form Books has a subform that is called Pages.  Notice how the subform Pages in Books has the same name as the form Pages.

Let's now say that when you delete a book you also want to delete all the pages.  One way you may want to do that is by writing the following code in the on_delete script in Books:

delete from input.Pages;

When you save and execute this, everything works properly!  Great!

Then later you open the script and the script editor has now changed the line to read:

delete from Pages;

Zoho removed the text "input." before "Pages".  When you save this, it hold a totally different meaning.  And now the script deletes every single page from the form pages (not just the subform).

The safe and correct way to write this is:

delete from Pages[Book = input.ID];

But the fact zoho changes the meaning of the variable from a subform to a form causes other headaches.  For example, let's say you need to count how many pages are in the book:

count = 0;
for each page in input.Pages
{
      count = count + 1;
}
input.Number_Of_Pages = count;

This works fine initially.  But once you save this script, zoho removes  the "input." from the line "input.Pages".  This again changes the meaning from the subform to the entire form.  So if you reopen this and save it again this script will report the total number of pages from all the books in the database.

Could someone within Zoho please fix this problem?  I know how to avoid this problem, but other programmers are sure to run into these same issues.  These namespace issues shouldn't be occurring.

Thanks!

P.S.  I've been waiting over a month to get my data restored.  I have called about 5 times now.