Jump to content

více znaků


jirik0201

Recommended Posts

nedal si verziu PS ... napr v 1.5.4 su obmedzenia

1/ v tabulke PREFIX_attachment_lang je `name` varchar(32)

2/ v AdminProductController.php

  ...
  elseif (Tools::strlen(Tools::getValue('attachment_name_'.(int)($language['id_lang']))) > 32)
$this->errors[] = sprintf(Tools::displayError('The name is too long (%d chars max).'), 32);
  ...

3/ v admin themes v attachments.tpl (potom aj v preklade)

<p class="margin-form preference_description">{l s='Maximum 32 characters.'}</p>

 

Dalej som neskumal, ale pri PS je mozne, ze aj po nacitani name z databazy bude dalsia kontrola, ci neni nazov moc dlhy :)

Link to comment
Share on other sites

čau, po úpravě v tabulce na 64 a v adminproductscontroller.php v

elseif (Tools::strlen(Tools::getValue('attachment_name_'.(int)($language['id_lang']))) > 32)

$this->errors[] = sprintf(Tools::displayError('The name is too long (%d chars max).'), 32);

 

na 64 píše chyby viz obrázek.

 

PS mám 1.5.4.0

 

 

díky za další návrhy.

post-190961-0-66853000-1366959627_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...