Small BUG for 3.82

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

Hi Kenny,

Thanks for reporting this bug!

I've created a fix that will be included in the next version of CMSB.

For you or anyone else who is currently having this issue, here's a patch that should fix it.

In the file: cmsb/lib/schema_functions.php around line 288

Find this code:

if (empty($schema[$name]["createThumbnails$suffix"])) {
      unset($schema[$name]["createThumbnails$suffix"]);
      unset($schema[$name]["maxThumbnailHeight$suffix"]);
      unset($schema[$name]["maxThumbnailWidth$suffix"]);
      unset($schema[$name]["cropThumbnails$suffix"]);
  }

And replace it with this:

 $thumbnailDisabled =
  empty($schema[$name]["createThumbnails$suffix"]);
  if ($thumbnailDisabled) {
      unset($schema[$name]["maxThumbnailHeight$suffix"]);
      unset($schema[$name]["maxThumbnailWidth$suffix"]);
      unset($schema[$name]["cropThumbnails$suffix"]);
      if ($suffix !== '') {
          unset($schema[$name]["createThumbnails$suffix"]);
      }
  }

Let me know if you have any futher issues.

Thanks!

Lucia
Technical Lead
interactivetools.com