Skip to Content
0
Former Member
May 16, 2018 at 04:56 AM

Limit the description field of Category Model to 180 Character max

337 Views

Hi Experts ,

I have one requirement to restrict the description filed of Category Model to 180 char max , So we use the OOTB code . There is dynamic size constraint is there , we have created like one below

INSERT_UPDATE SizeConstraint;descriptor(enclosingType(code),qualifier);id[unique=true,allownull=true];max[allownull=true];min[allownull=true];qualifier[allownull=true];severity(code,itemtype(code));target[allownull=true];type(code);constraintGroups(id);message[lang=de];message[lang=en] ;Category:description;CategoryDescriptionMaxSizeCoverageConstraint;180;5;description;ERROR:Severity;de.hybris.platform.category.model.CategoryModel;Category;productCoverageConstraintGroup

We have reload the engine Validation as well . After this when try to validate this things from backoffice - then it will not work , but this will work if we do it vai admincockpit and productcockpit . So is there any issue in backoffice specific to hybris 6.5

Please suggest if someone face same issue , and he has got some solution on it .

Thanks ,