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

Home » RADICORE development » Bug Reports » v1.34 issue with audit_logging and getFieldspec_original
Re: v1.34 issue with audit_logging and getFieldspec_original [message #1307 is a reply to message #1304] Fri, 04 April 2008 06:07 Go to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
Yes, this is in fact a bug. After doing my own testing my own solution is as follows:

In the getFieldSpec_original() method change both occurrences of
if (!empty($this->audit_logging)) {
to
if (is_bool($this->audit_logging)) {

I shall include this fix in the next release.

The only 'standard' for setting variables in Radicore is to use the correct data type otherwise the results may be unpredictable.

In the case of some of the options which go into the $fieldspec array, they are switched on with:
$this->fieldspec['column']['keyword'] = 'y';

and switched off with
unset($this->fieldspec['column']['keyword']);

In these cases using
$this->fieldspec['column']['keyword'] = 'n';

will not have any effect as it is the existence of the keyword, not its value, that is checked.


 
Read Message
Read Message
Previous Topic: Problem in Delete Operation
Next Topic: v 1.35 - Inconsistent SQL files
Goto Forum:
  


Current Time: Sun Nov 24 08:02:07 EST 2024

Total time taken to generate the page: 0.00924 seconds