Small BUG for 3.82
2 posts by 2 authors in: Forums > CMS Builder
Last Post: 5 hours ago (RSS)
In Database Editor >> *schema* >> Input Validation >> Upload Settings, when unchecking a "Create thumbnail" and it's related "Crop" checkbox, they revert back to being checked on save.
Thanks,
Kenny H
Kenny H
By Lucia - 5 hours ago
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
Technical Lead
interactivetools.com