From: Scott M. <sco...@gm...> - 2011-03-29 14:09:04
|
Hi all, Late yesterday I checked in more updates to the simple form/actions/javascript, and included the code to check if the PHP configuration variable max_post_size was set to at least 32K. If not, a "Fatal Problem" page is displayed explaining that the php.ini file needs to be modified and that entry needs to be set to at least 32K. This should happen, I believe, even when the system needs to be initially installed. I'm hopeful this addition mitigates the "silently truncated" problem that could otherwise occur. -Scott On Wed, Mar 23, 2011 at 9:24 PM, Scott Miller <sco...@gm...>wrote: > I've made several fixes to the simple.php, simple_actions.php and simple.js > files. The simple timesheet stuff had been broken during the OO > modifications, so, they are now using JText, and they are working again. > > I'm still in the midst of changing how the simple sheet works; I'm > significantly restricting what gets deleted and re-added by putting in the > "old values" into the post variables, and then testing to see if anything > for a particular entry actually changed. If they change, then a deletion of > only those things that changed, and then a new addition is performed with > the new information. I am contemplating storing the transaction numbers and > "modifying" entries instead, but that hasn't happened yet :-) > > There is a "bug" that may get tickled by this: if the php.ini file > specifies a very small limit to post entries, the data that should be > getting to simple_actions.php may be silently truncated. This situation > should be tested for during the installation process, but isn't yet. > > -Scott > |