Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » BUG+FIX: error generated in _cm_pre_updateRecord gives 'blank' screen
BUG+FIX: error generated in _cm_pre_updateRecord gives 'blank' screen [message #657] Fri, 23 February 2007 11:54 Go to previous message
janalwin is currently offline  janalwin
Messages: 17
Registered: May 2006
Location: Groningen
Junior Member
When you generate an error in _cm_pre_updateRecord function ($this->errors['xx']=...), you will get the updatescreen back but without any data.

The problem is that the fieldarray data is lost when the fieldarray is merged with the non-existant updatearray in function updateRecord
$fieldarray = array_merge($fieldarray, $updatearray);

I put this at the beginning of the updateRecord function:
$updatearray=Array();

This solves the problem, probably because $updateArray is now an array. Previously it was nothing, so PHP probably defaulted to a string.


I use PHP 5.2.0 on Mac OS X 10.4
 
Read Message
Read Message
Previous Topic: not able to search 'Task Id'
Next Topic: BUG. $wherearray is empty in _cm_Fileupload
Goto Forum:
  


Current Time: Mon Nov 25 04:48:38 EST 2024

Total time taken to generate the page: 0.00867 seconds