logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Thursday, June 11, 2020 11:09:47 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
We have a site that is upgrading and they need to be able to save more than 1000 characters in the category summary. The db field is NVarchar(MAX) so there is room, but you have limited it to 1000 characters in the controller, so we have to make a change that requires a recompile to just change that!! In Gold, it wasn't an issue because it was a quick change. You might reconsider other ways of limiting characters- we have seen similar situations numerous times over the years.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Thursday, June 11, 2020 12:56:46 PM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Are you trying to edit the Category page summary from the retail or admin side?
Can you please mention steps to reproduce.

At which page?
judy at Web2Market  
#3 Posted : Monday, June 15, 2020 9:57:26 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Well, I hadn't actually tried it until now, but the Admin CategoryController has
category.Summary = StringHelper.Truncate(categoryModel.Summary, 1000);

I just tested with 1500 words, and it was truncated when saved. The admin page doesn't give any indication that it was truncated until I navigated out, then back and checked the content. No error warning when you save it, and the screen showed the entire 1500 words after hitting save, but it wasn't really saved.
shari  
#4 Posted : Monday, June 15, 2020 12:41:10 PM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Thanks for the code reference from admin.
It seems that there should be an indication of the character limit on the UI side as well.

I 'll report the issue.
Katie S  
#5 Posted : Monday, June 15, 2020 7:54:48 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Sorry Judy,

This is bad bug for anyone who has upgraded and using the summary field. I updated the bug report so it will be fixed in the next version.

Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.