Hi,
I have a problem in my custom created "Accounts" module;
I have created a logic hook for auto increment. When i want to create a new "account" i fill in the "name", and leave the "number" field empty so it automatically SHOULD create "0001". When i do this and i "save" it, it gives me back a blank page with the message "can't show page".
BUT; when it is the first "account" and i fill in the "name" and fill in the "number" with any number it does save this account with number "0001'
This is only with the first account, cause when account "0001' exists, and i create a new "account" where i leave the "number field' empty, it does save as "0002"
How strange is this? And can someone please tell me what the solution is?
Thanks very much!
See screenshot
Ps; Isn't is possible that when i go to "create account" it automatically fill in the "number field" with its (following) number ?


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks