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 forums.ablecommerce.com. Please use your AbleCommerce username and password to Login. Forums Registration.

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: 79

Was thanked: 2 time(s) in 2 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. Forums Registration.

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

Rank: Advanced Member

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

Was thanked: 10 time(s) in 10 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: 79

Was thanked: 2 time(s) in 2 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)
shari

Rank: Advanced Member

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

Was thanked: 10 time(s) in 10 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_able_support  
#5 Posted : Monday, June 15, 2020 7:54:48 PM(UTC)
katie_able_support

Rank: Advanced Member

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

Thanks: 2 times
Was thanked: 6 time(s) in 5 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
Users browsing this topic
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.