[Skip to main content](#vessel-content)

#   Single dropdown custom field SQL truncated

##

- **[marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")**
- [![marcmarc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1529-marcmarc "View marcmarc's Profile") Topic Author
- [ Offline](/forum/user/1529-marcmarc)

Less More

- Posts: 74
- Thank you received: 7
-
-

2 years 7 months ago [\#360268](#360268) by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")  *[Single dropdown custom field SQL truncated](/forum/32-content-creation/908030-single-dropdown-custom-field-sql-truncated#360268 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Hi, I have a single dropdown custom field populated by a sql query the query is 435 chars long but when saved the query is truncated to 420 chars  I've looked at the table 'hikashop&#95;field' and the row 'field&#95;options' where the query is stored is of type 'longtext' so the problem is not there. any idea?  thanks")* was created by *[marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")*

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.1.27

Hi,
I have a single dropdown custom field populated by a sql query
the query is 435 chars long but when saved the query is truncated to 420 chars

I've looked at the table 'hikashop_field' and the row 'field_options' where the query is stored is of type 'longtext' so the problem is not there.
any idea?

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA4MDMwLXNpbmdsZS1kcm9wZG93bi1jdXN0b20tZmllbGQtc3FsLXRydW5jYXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 7 months ago [\#360271](#360271) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Single dropdown custom field SQL truncated](/forum/32-content-creation/908030-single-dropdown-custom-field-sql-truncated#360271 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Hi, I have a single dropdown custom field populated by a sql query the query is 435 chars long but when saved the query is truncated to 420 chars  I've looked at the table 'hikashop&#95;field' and the row 'field&#95;options' where the query is stored is of type 'longtext' so the problem is not there. any idea?  thanks")*

Hi,

I have no problem on my end adding more than 420 characters for the MySQL query on my end.
There is no such restriction in the code, and indeed, the type of the column in the database shouldn't be a limitation either.
So I don't see how that's possible. I guess it would require some debugging in the administrator/components/com_hikashop/classes/field.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA4MDMwLXNpbmdsZS1kcm9wZG93bi1jdXN0b20tZmllbGQtc3FsLXRydW5jYXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.059 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
