CMSB 3.81 menu groups BUG?

4 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 10:53am   (RSS)

I was recreating my menugroups as some had very old extraneous fields. I notice that the new menugroup had an extra entry for menuOrder. I thought that menuOrder was no longer required. These were recreated in CMSB 3.81

<?php return [
  'menuName' => ' App Settings ',
  '_tableName' => 'app_settings_menugroup',
  '_primaryKey' => 'num',
  'menuType' => 'menugroup',
  'listPageFields' => '',
  'listPageOrder' => '',
  'listPageSearchFields' => '',
  '_filenameFields' => '',
  '_perPageDefault' => NULL,
  'alwaysExpanded' => 0,
  'menuOrder' => 1211054592,

];
Jeff Shields
yaadev.com

Hi Jeff,

Yes, you're right. menuOrder is no longer used. Menu order is now stored in a separate cache file.

The upgrade process removes menuOrder from existing schemas, but we try to be non-destructive with unknown data, so if these schemas were imported or recreated from older files, extra keys won't be automatically stripped.

You can safely remove it. It's just being ignored.

Let me know if you have any other questions, thanks!

Dave Edis - Senior Developer
interactivetools.com

They were created in 3.81. I deleted the old one usine the database editor. Confirmed the database record was removed and the file deleted. i then recreated the menugroup. Checked the dtatabase, new record created. Checked the file and no menuOrder. dragged it into position and the menuOrder was added to the schema.pho file.

Jeff Shields
yaadev.com