// Merge -> revision 8720
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8722 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -77,7 +77,11 @@ class AdminAttributes extends AdminTab
|
||||
<input size="33" type="text" name="name_'.$language['id_lang'].'" value="'.htmlspecialchars($this->getFieldValue($obj, 'name', (int)($language['id_lang']))).'" /><sup> *</sup>
|
||||
<span class="hint" name="help_box">'.$this->l('Invalid characters:').' <>;=#{}<span class="hint-pointer"> </span></span>
|
||||
</div>';
|
||||
$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'name', 'name');
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
var flag_fields = \'name\';
|
||||
</script>';
|
||||
$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'flag_fields', 'name', false, true);
|
||||
echo '
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
@@ -117,6 +121,7 @@ class AdminAttributes extends AdminTab
|
||||
).'</p>
|
||||
</div>
|
||||
</div>
|
||||
'.Module::hookExec('attributeForm', array('id_attribute' => $obj->id)).'
|
||||
<div class="margin-form">
|
||||
<input type="submit" value="'.$this->l(' Save ').'" name="submitAddattribute" class="button" />
|
||||
</div>
|
||||
@@ -136,6 +141,10 @@ class AdminAttributes extends AdminTab
|
||||
if (!Combination::isFeatureActive())
|
||||
return;
|
||||
|
||||
|
||||
Module::hookExec('postProcessAttribute',
|
||||
array('errors' => &$this->_errors)); // send _errors as reference to allow postProcessFeatureValue to stop saving process
|
||||
|
||||
if (Tools::getValue('submitDel'.$this->table))
|
||||
{
|
||||
if ($this->tabAccess['delete'] === '1')
|
||||
|
||||
Reference in New Issue
Block a user