Create New Record HERE

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 28   (RSS)

By KennyH - March 27

Using 3.66 I found a small bug. I am finding that when you go to Database Editor >> choose a section >> and then try to use Insert Field Here (+), it works, but it creates the new field two spots down from where I clicked the (+)

Kenny H

By Dave - March 28

Hi Kenny, 

Good find!  We'll have that fixed in the next beta release. 

To patch it in the current version open /lib/menus/database/editTable_functions.php and search for addField.  Then replace this: 

$link  = "?menu=database&action=editField&addField=1&tableName=".urlencode($tableName)."&order=".($field['order'] + 1).".5&fieldname=";

With this: 

$newOrder = ((int) $field['order']) + 0.5;
$link     = "?menu=database&action=editField&addField=1&tableName=".urlencode($tableName)."&order=$newOrder&fieldname=";

Thanks!

Dave Edis - Senior Developer
interactivetools.com