CMS MADE SIMPLE FORGE

Module Generator

 

[#8860] Possibility to add a same field definition name but for different kind of category

avatar
Created By: Jocelyn Lusseau (kraygoon)
Date Submitted: 2013-01-25 07:27

Assigned To: Zdeno Kuzmany (xxl)
Resolution: Fixed
State: Closed
Summary:
Possibility to add a same field definition name but for different kind of category
Detailed Description:
Possibility to add a same field definition name but for different kind of
category.
Eg. : "description" for "Items" and also "description" for "Galleries".

History

Comments
avatar
Date: 2013-01-25 07:48
Posted By: Jocelyn Lusseau (kraygoon)

In the file « action.admin_editfielddef.php » on line 67/68, replace:

$query = 'SELECT fielddef_id FROM ' . cms_db_prefix() . 'module_' .
$this->_GetModuleAlias() . '_fielddef WHERE name = ?';
$exists = $db->GetOne($query, array($name));

By:

$query = 'SELECT fielddef_id FROM ' . cms_db_prefix() . 'module_' .
$this->_GetModuleAlias() . '_fielddef WHERE name = ? AND section = ?';
$exists = $db->GetOne($query, array($name, $section));
      
avatar
Date: 2013-01-25 09:28
Posted By: Zdeno Kuzmany (xxl)

Fixed in SVN. THX
      
Updates

Updated: 2013-09-08 17:00
state: Open => Closed

Updated: 2013-01-25 09:28
resolution_id: => 7