Changing the number of previous studio layouts to save for a view

Post originally written by John Mertic.

There was a discussion recently in Andrea Ayer's Sugar Adminstration Essentials class about previous layouts are stored in Studio when changing how a screen looks. You can access it on an View edit screen by clicking 'View History'...

The specific question came up of how many previous layouts are saved. Here's the answer...

  • By default, the past 50 layouts are saved
  • You can change this by setting the config variable $sugar_config['studio_max_history']
  • Setting $sugar_config['studio_max_history'] to 0 will enable saving all previous layouts