Implementing this for testing on a system I intend to convert to live I ran into the following issue.
1) I added a couple user defined fields to the Companies info form
2) Added a page to the form
3) Ordered the page addition above the two new fields
Took a look at it and tested some inputs to the two new fields, liked what I saw but didn't need it.
4) Deleted the new page
5) disabled the new fields
When I tried to go to the company listing I received an error.
who=1
type=8
message=Undefined index: param
error
file=\Apache2\htdocs\modules\Utils\RecordBrowser\RecordBrowser_0.php
error line=1259
I was easily able to work around the error by changing the line of code to read as follows,
From:
$last_page = DB::GetOne('SELECT MIN(position) FROM '.$this->tab.'_field WHERE type = \'page_split\' AND field != \'General\'');
To:
$last_page = DB::GetOne('SELECT MIN(position) FROM '.$this->tab.'_field WHERE type = \'page_split\' AND field = \'General\'');
I realize some referential issue to an object that no longer exists in the DB is haunting me... Before changing this line of code I tried to manually clean the database up in order to remove the source of the issue but finally turned to this...
Thanks,
Clark